C++
Android 12
编译依赖库:
libutilscallstack
头文件:
#include <utils/CallStack.h>
代码:
CallStack stack;
stack.update();
stack.log("TAG");
打印calling pid
#include <binder/IPCThreadState.h>
IPCThreadState::self()->getCallingPid(); // 占位用%d
标签:打印,C++,堆栈,Android,include,stack
From: https://www.cnblogs.com/yulisuo/p/17829894.html