use ui.perfetto.dev generate config file,when using error
- Dominant language
- C++
- Stars
- 6.5k
- Forks
- 872
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 218
Description
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)
Contributor guide
Research direction
Reproduce the issue with the shown adb command and the config.pbtx generated by ui.perfetto.dev. Compare the generated fields with the Perfetto parser's accepted ChromeConfig and DataSourceConfig fields; done means the config is accepted and trace.perfetto-trace is produced without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100