能力值:
( LV4,RANK:40 )
|
-
-
2 楼
判断堆栈调用信息
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
小调调
判断堆栈调用信息
能具体点吗?或者说提供点代码片段?
|
能力值:
( LV4,RANK:40 )
|
-
-
4 楼
Dl_info info = {0};
dladdr(__builtin_return_address(0), &info);
ASLog(@"Stack Log: fname=%s, fbase=%p, sname=%s, saddr=%p, offset=%#08lx, stack=>\n%@\r\n",
info.dli_fname,
info.dli_fbase,
info.dli_sname,
info.dli_saddr,
(long)info.dli_saddr - (long)info.dli_fbase,
[NSThread callStackSymbols]);
|
|
|