Tencent / OOMDetector

OOMDetector is a memory monitoring component for iOS which provides you with OOM monitoring, memory allocation monitoring, memory leak detection and other functions.
Other
2.32k stars 355 forks source link

获取到堆栈地址信息后,能说说具体如何回溯成看得懂的堆栈地址么? #6

Open ifelseboyxx opened 6 years ago

ifelseboyxx commented 6 years ago
"1 libsystem_malloc.dylib 0x18181e000 0x18181ebe8" 
"2 libsystem_malloc.dylib 0x18181e000 0x181821574" 
"3 TCTravel_IPhone 0x1005bc000 0x10061ff1c" 
"4 libdispatch.dylib 0x1093e0000 0x1093e145c"

比如这些,具体怎么回溯成看的懂的堆栈?能给点方向么?

rosen0510 commented 6 years ago

用atos命令,后续会补充一个堆栈还原的工具

nyz110 commented 6 years ago

可否讲解下如何取 atos 参数

3 TCTravel_IPhone 0x1005bc000 0x10061ff1c  

0x1005bc000 是load address ?0x10061ff1c 是调用地址?

rosen0510 commented 6 years ago

是的

rosen0510 commented 6 years ago

堆栈翻译脚本已经添加,在translate stack目录

ifelseboyxx commented 6 years ago

想问下,这个 .log 文件,是不是只有模拟器上能取出来?

ShenJieSuzhou commented 6 years ago

@ifelseboyxx 可以通过Xcode "download Contain"取出

ifelseboyxx commented 6 years ago

@ShenJieSuzhou 老哥,能具体点么,没找到在哪里。。。。

ShenJieSuzhou commented 6 years ago

@ifelseboyxx Xcode ->Windows->Device and Simulators 在右边面板中选中你的app然后,点一下那个齿轮一样的按钮,里面有download Container

TaoistKing commented 6 years ago

@rosen0510 解析出来是空文件,是怎么回事?