ATRACE_CALL
时间: 2023-08-06 22:04:52 浏览: 171
ATRACE_CALL是一个用于统计函数调用情况的宏。在应用层中,可以使用ATRACE_CALL()来标记函数的开始和结束,以便在trace中进行跟踪和分析。\[1\]在内核层中,可以使用trace_printk("1\n")来输出trace信息。\[1\]此外,还可以使用其他方法来进行systrace跟踪,如使用Trace类的beginSection和endSection方法,在framework的java层代码中使用Trace.traceBegin和Trace.traceEnd方法,在framework的native代码中使用ATRACE_CALL宏或ATRACE_BEGIN和ATRACE_END方法。\[3\]总之,ATRACE_CALL是一种用于跟踪函数调用情况的方法。
#### 引用[.reference_title]
- *1* [trace抓取](https://blog.csdn.net/zjli321/article/details/51833877)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [理解和使用systrace](https://blog.csdn.net/omnispace/article/details/77620667)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Android代码添加systrace跟踪](https://blog.csdn.net/oujunli/article/details/16888897)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文