Show call stack in perfetto from json input

Here is a example to enable call stack flame display in perfetto web page from a json input file.

复制代码
{
"name": "sched_switch",
"cat": "kernel",
"ph": "i",
"ts": 12122651546,
"pid": 29613,
"tid": 29613,
"s": "t",
"args": {
"comm": "<...>",
"cpu": 1,
"stack": [
"trace_event_buffer_commit",
"trace_event_raw_event_sched_switch",
"__schedule",
"schedule",
"schedule_hrtimeout_range_clock",
"schedule_hrtimeout_range",
"usleep_range",
"write_sensor_sda_register.isra.0",
"pvt_s5_read",
"hwmon_thermal_get_temp",
"of_thermal_get_temp",
"thermal_zone_get_temp",
"of_thermal_get_temp",
"thermal_zone_get_temp",
"temp_show",
"dev_attr_show",
"sysfs_kf_seq_show",
"kernfs_seq_show",
"seq_read_iter",
"kernfs_fop_read_iter",
"new_sync_read",
"vfs_read",
"ksys_read",
"__arm64_sys_read",
"el0_svc_common.constprop.0",
"do_el0_svc",
"el0_svc",
"el0_sync_handler",
"el0_sync"
]
}
},
相关推荐
牛奶18 小时前
AI辅助开发最佳实践:2026年新方法
前端·aigc·ai编程
美好的事情能不能发生在我身上19 小时前
Hot100中的:贪心专题
java·数据结构·算法
myloveasuka19 小时前
Java与C++多态访问成员变量/方法 对比
java·开发语言·c++
C澒19 小时前
微前端容器标准化:公共能力标准化
前端·架构
Setsuna_F_Seiei19 小时前
AI 对话应用之 JS 的流式接口数据处理
前端·javascript·ai编程
Andya_net19 小时前
Spring | @EventListener事件机制深度解析
java·后端·spring
lang2015092819 小时前
18 Byte Buddy 进阶指南:解锁 `@Pipe` 注解,实现灵活的方法转发
java·byte buddy
重庆小透明19 小时前
【java基础篇】详解BigDecimal
java·开发语言
ID_1800790547319 小时前
模拟1688商品详情的Python API实现,返回符合风格的JSON数据
开发语言·python·json
青柠代码录20 小时前
【Vue3】Vue Router 4 路由全解
前端·vue.js