// trace_processor probe example { "probes": { "trace_processor": { // If necessary, a custom path for trace_processor_shell can be passed // trace_processor_bin: "/optional/path/to/trace_processor_shell" "queries": [ // Queries can be specified as a reference to a file in // crossbench/probes/trace_processor/queries: "speedometer_cpu_time" // Or specified inline: { "name": "my_query" "sql": "select dur from slice where slice.name = 'my_slice'" } ] "metrics": [ "trace_stats" ] // Additional directories containing trace processor modules // can be specified: "module_paths": [ "/my_project/modules/ext" ] // Perfetto v2 metric definitions can be specified either inline // or as a path: "metric_definitions": [ "./metric_def.textproto" ''' metric_spec: { id: "inline_textproto_metric" value: "metric_column" query { id: "query_id" table { table_name: "metric_table" module_name: "module_name" column_names: "metric_column" } } } ''' ] // Metrics to include only in the trace summary can be specified. // summary_metrics will include everything in the 'metrics' list as well // as additional metrics (such as v2 metrics) specified here: "summary_metrics": [ "file_metric_def_textproto" "inline_textproto_metric" ] } "perfetto": { "textproto": ''' buffers { size_kb: 300000 fill_policy: DISCARD } data_sources { config { name: "org.chromium.trace_metadata2" } } data_sources { config { name: "track_event" track_event_config { disabled_categories: "*" enabled_categories: "blink.user_timing" enabled_categories: "toplevel" enabled_categories: "__metadata" timestamp_unit_multiplier: 1000 enable_thread_time_sampling: true filter_debug_annotations: false filter_dynamic_event_names: false } } } data_sources: { config { name: "linux.ftrace" ftrace_config { ftrace_events: "sched/sched_switch" ftrace_events: "power/suspend_resume" ftrace_events: "sched/sched_wakeup" ftrace_events: "sched/sched_wakeup_new" ftrace_events: "sched/sched_waking" ftrace_events: "sched/sched_process_exit" ftrace_events: "sched/sched_process_free" ftrace_events: "task/task_newtask" ftrace_events: "task/task_rename" } } } ''' } } }