• Stars
    star
    148
  • Rank 242,110 (Top 5 %)
  • Language
    Objective-C
  • Created about 4 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

静态插桩的方式来实现Hook Method

KKMagicHook

TimeProfiler的进阶库,可以可视化特定模块的OC方法耗时。

原理

通过静态库来静态插桩的方式,实现Hook拦截。

使用

hookObjcMsgSend.py脚本处理需要监控的静态库,将MagicHook文件夹拖入工程中。无需调用任何方法,App启动后,摇一摇就可以打开可视化OC耗时数据。比如项目中使用了TalkingData这个第三方库,我们想监控/评估一下这个第三方库的性能问题,这个时候就不想监控项目中其它类了,以免干扰分析。

博客

静态插桩的方式来实现Hook Method