1buffers {
2  size_kb: 655360
3  fill_policy: RING_BUFFER
4}
5
6data_sources {
7  config {
8    name: "linux.ftrace"
9    target_buffer: 0
10    ftrace_config {
11      ftrace_events: "sched_switch"
12      ftrace_events: "sched_wakeup"
13
14      atrace_apps: "*"
15
16      compact_sched {
17        enabled: true
18      }
19    }
20  }
21}
22
23data_sources {
24  config {
25    name: "track_event"
26    track_event_config {
27        disabled_categories: "*"
28        enabled_categories: "Driver"
29        enabled_categories: "EGL"
30        enabled_categories: "OpenGL"
31        enabled_categories: "VMM"
32    }
33  }
34}
35
36# Resolve process commandlines and parent/child relationships, to better
37# interpret the ftrace events, which are in terms of pids.
38data_sources {
39  config {
40    name: "linux.process_stats"
41    target_buffer: 0
42  }
43}
44
45data_sources {
46  config {
47    name: "gpu.metrics"
48    gpu_counter_config {
49      counter_period_ns: 1000000
50    }
51  }
52}
53
54write_into_file: true
55flush_period_ms: 250
56