diff options
Diffstat (limited to 'perf-testing/Docker/perfetto-host.cfg')
-rw-r--r-- | perf-testing/Docker/perfetto-host.cfg | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/perf-testing/Docker/perfetto-host.cfg b/perf-testing/Docker/perfetto-host.cfg new file mode 100644 index 00000000..dd179d33 --- /dev/null +++ b/perf-testing/Docker/perfetto-host.cfg @@ -0,0 +1,55 @@ +buffers { + size_kb: 655360 + fill_policy: RING_BUFFER +} + +data_sources { + config { + name: "linux.ftrace" + target_buffer: 0 + ftrace_config { + ftrace_events: "sched_switch" + ftrace_events: "sched_wakeup" + + atrace_apps: "*" + + compact_sched { + enabled: true + } + } + } +} + +data_sources { + config { + name: "track_event" + track_event_config { + disabled_categories: "*" + enabled_categories: "Driver" + enabled_categories: "EGL" + enabled_categories: "OpenGL" + enabled_categories: "VMM" + } + } +} + +# Resolve process commandlines and parent/child relationships, to better +# interpret the ftrace events, which are in terms of pids. +data_sources { + config { + name: "linux.process_stats" + target_buffer: 0 + } +} + +data_sources { + config { + name: "gpu.metrics" + gpu_counter_config { + counter_period_ns: 1000000 + } + } +} + +write_into_file: true +flush_period_ms: 250 |