blob: b78544bd0f969586a28c08abeed2726e3d95d89e [file] [log] [blame]
# Example config for a trace that polls system counters.
duration_ms: 2000
buffers {
size_kb: 16384
fill_policy: RING_BUFFER
}
buffers {
size_kb: 16384
fill_policy: RING_BUFFER
}
# Enable various data sources as usual.
data_sources {
config {
name: "linux.ftrace"
target_buffer: 0
ftrace_config {
# These parameters affect only the kernel trace buffer size and how
# frequently it gets moved into the userspace buffer defined above.
buffer_size_kb: 16384
drain_period_ms: 250
ftrace_events: "cpu_frequency"
ftrace_events: "cpu_idle"
ftrace_events: "sched_switch"
ftrace_events: "tracing_mark_write"
}
}
}
data_sources {
config {
name: "linux.process_stats"
target_buffer: 0
process_stats_config {
proc_stats_poll_ms: 10
}
}
}
data_sources {
config {
name: "linux.sys_stats"
target_buffer: 1
sys_stats_config {
meminfo_period_ms: 100
meminfo_counters: MEMINFO_MEM_AVAILABLE
meminfo_counters: MEMINFO_BUFFERS
meminfo_counters: MEMINFO_CACHED
meminfo_counters: MEMINFO_SWAP_CACHED
meminfo_counters: MEMINFO_ACTIVE
meminfo_counters: MEMINFO_INACTIVE
meminfo_counters: MEMINFO_ACTIVE_ANON
meminfo_counters: MEMINFO_INACTIVE_ANON
meminfo_counters: MEMINFO_ACTIVE_FILE
meminfo_counters: MEMINFO_INACTIVE_FILE
meminfo_counters: MEMINFO_UNEVICTABLE
vmstat_period_ms: 100
vmstat_counters: VMSTAT_NR_FREE_PAGES
vmstat_counters: VMSTAT_NR_ALLOC_BATCH
vmstat_counters: VMSTAT_NR_INACTIVE_ANON
vmstat_counters: VMSTAT_NR_ACTIVE_ANON
vmstat_counters: VMSTAT_NR_INACTIVE_FILE
vmstat_counters: VMSTAT_NR_ACTIVE_FILE
vmstat_counters: VMSTAT_NR_UNEVICTABLE
vmstat_counters: VMSTAT_NR_MLOCK
vmstat_counters: VMSTAT_NR_ANON_PAGES
vmstat_counters: VMSTAT_NR_MAPPED
vmstat_counters: VMSTAT_NR_FILE_PAGES
vmstat_counters: VMSTAT_NR_DIRTY
vmstat_counters: VMSTAT_NR_WRITEBACK
vmstat_counters: VMSTAT_NR_SLAB_RECLAIMABLE
vmstat_counters: VMSTAT_NR_SLAB_UNRECLAIMABLE
vmstat_counters: VMSTAT_NR_PAGE_TABLE_PAGES
vmstat_counters: VMSTAT_NR_KERNEL_STACK
vmstat_counters: VMSTAT_NR_OVERHEAD
vmstat_counters: VMSTAT_NR_UNSTABLE
vmstat_counters: VMSTAT_NR_BOUNCE
vmstat_counters: VMSTAT_NR_VMSCAN_WRITE
vmstat_counters: VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM
vmstat_counters: VMSTAT_NR_WRITEBACK_TEMP
stat_period_ms: 100
stat_counters: STAT_CPU_TIMES
stat_counters: STAT_IRQ_COUNTS
stat_counters: STAT_FORK_COUNT
}
}
}