Closed YvanMao closed 9 months ago
Yes, you need to enable the track-event data source in the config
See https://perfetto.dev/docs/instrumentation/tracing-sdk and specifically the section that mentions
"To include your new track events in the trace, ensure that the track_event data source is included in the trace config. If you do not specify any categories then all non-debug categories will be included by default. However, you can also add just the categories you are interested in like so:"
config {
name: "track_event"
track_event_config {
enabled_categories: "rendering"
}
}
}
I capture traces on Android13 in System mode, but I can't see my trace event
Step1: invoke startSysTracing Step2: execute cmdline(record_android_trace -t 5s rendering sched freq idle am wm gfx view binder_driver hal dalvik camera input res memory) Step3: invoke testSysTrace (but isEnabled always false) Step4: invoke stopSysTracing Step5: check the trace file
Is there something missing from my steps? Looking forward to your response :)