perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

use ui.perfetto.dev generate config file,when using error

Open EddyGogogo opened this issue 1 year ago • 2 comments

adb shell 'cat /data/local/tmp/config.pbtx | perfetto --txt -c - -o /data/misc/perfetto-traces/trace.perfetto-trace' -:15:7 error: No field named "client_priority" in proto ChromeConfig client_priority: USER_INITIATED ^~~~~~~~~~~~~~~ -:17:5 error: No field named "track_event_config" in proto DataSourceConfig track_event_config { ^~~~~~~~~~~~~~~~~~ -:18:7 error: No field named "disabled_categories" in proto DataSourceConfig disabled_categories: "*" ^~~~~~~~~~~~~~~~~~~ -:19:7 error: No field named "enabled_categories" in proto DataSourceConfig enabled_categories: "_metadata" ^~~~~~~~~~~~~~~~~~ -:20:7 error: No field named "timestamp_unit_multiplier" in proto DataSourceConfig timestamp_unit_multiplier: 1000 ^~~~~~~~~~~~~~~~~~~~~~~~~ -:21:7 error: No field named "filter_debug_annotations" in proto DataSourceConfig filter_debug_annotations: false ^~~~~~~~~~~~~~~~~~~~~~~~ -:22:7 error: No field named "enable_thread_time_sampling" in proto DataSourceConfig enable_thread_time_sampling: true ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -:23:7 error: No field named "filter_dynamic_event_names" in proto DataSourceConfig filter_dynamic_event_names: false ^~~~~~~~~~~~~~~~~~~~~~~~~~ pbtxt_to_pb.cc:440 PERFETTO_CHECK(!ctx.empty()) (errno: 0, Success)

EddyGogogo avatar Apr 14 '25 09:04 EddyGogogo

The use Settings are android10,The generated trace profile will not run on adnroid10,The android version cannot be selected, and the sample diagram provided by the official documentation is also different。

Image

Image

EddyGogogo avatar Apr 14 '25 09:04 EddyGogogo

workaround: try disabling the "chrome browser" tracing, I believe all of the unrecognised options are from that.

docs: yes, there was a rewrite of the recording UI not too long ago and the screenshots are outdated.

@primiano we can't realistically keep versioning config options by API level, but a nontrivial amount of users won't be on the latest release. Perhaps we should look into using serialised protobufs to skip unrecognised options?

rsavitski avatar Apr 14 '25 10:04 rsavitski