diff options
author | Parth Sane <parthsane@google.com> | 2024-04-03 12:52:07 +0000 |
---|---|---|
committer | Parth Sane <parthsane@google.com> | 2024-04-05 12:29:49 +0000 |
commit | e2ca99bf3d840a92f39a47999e40ff33a5ad8dca (patch) | |
tree | 69612348355ca30e1d069409604e1e3fc1cac68b | |
parent | bb22315c66bde2fcf36ce431ee577d753f53ab19 (diff) | |
download | tools-e2ca99bf3d840a92f39a47999e40ff33a5ad8dca.tar.gz |
Add Global counters for Memory
This is to add more context to GC metrics
Test: N/A
Bug: 325046706
Change-Id: I560ab295c739e2cc1cde82f0d18193e5764eeac8
-rw-r--r-- | linux-x86_64/perfetto/configs/trace_config_post_boot.textproto | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/linux-x86_64/perfetto/configs/trace_config_post_boot.textproto b/linux-x86_64/perfetto/configs/trace_config_post_boot.textproto index 0cf41fa1e..449eade93 100644 --- a/linux-x86_64/perfetto/configs/trace_config_post_boot.textproto +++ b/linux-x86_64/perfetto/configs/trace_config_post_boot.textproto @@ -35,6 +35,27 @@ data_sources: { } } data_sources: { + config { + name: "linux.sys_stats" + target_buffer: 1 + sys_stats_config { + meminfo_period_ms: 1000 + meminfo_counters: MEMINFO_ACTIVE_ANON + meminfo_counters: MEMINFO_ACTIVE_FILE + meminfo_counters: MEMINFO_INACTIVE_ANON + meminfo_counters: MEMINFO_INACTIVE_FILE + meminfo_counters: MEMINFO_KERNEL_STACK + meminfo_counters: MEMINFO_MLOCKED + meminfo_counters: MEMINFO_SHMEM + meminfo_counters: MEMINFO_SLAB + meminfo_counters: MEMINFO_SLAB_UNRECLAIMABLE + meminfo_counters: MEMINFO_VMALLOC_USED + meminfo_counters: MEMINFO_MEM_FREE + meminfo_counters: MEMINFO_SWAP_FREE + } + } +} +data_sources: { config { name: "linux.ftrace" ftrace_config { |