Tagged articles
3 articles
Page 1 of 1
Huolala Tech
Huolala Tech
Aug 23, 2022 · Mobile Development

How to Hook objc_msgSend for Precise iOS Method Timing with Assembly

This article explains how to accurately measure the execution time of Objective‑C methods on iOS by implementing a custom objc_msgSend hook in ARM64 assembly, replacing the original implementation with fishhook, and visualizing the results using Chrome tracing, offering a low‑cost, non‑intrusive performance profiling solution.

AssemblyiOSmethod timing
0 likes · 21 min read
How to Hook objc_msgSend for Precise iOS Method Timing with Assembly