From eee1f322a6eeed46b3d8ef1a08bf40ff85dd3e2a Mon Sep 17 00:00:00 2001 From: Kalesh Singh Date: Wed, 15 Jun 2022 22:54:20 -0700 Subject: perfetto: Add rss_stat.cfg test config Add a test config for rss_stat/rss_stat_throttled ftrace events. Test: adb push test/configs/rss_stat.cfg /data/local/tmp/ && cf-adb shell 'cat /data/local/tmp/rss_stat.cfg | perfetto --txt -c - -o /data/misc/perfetto-traces/trace Bug: 236172293 Change-Id: Ie2852467c21c6c7bdfa1c75dc60f49f28e6f709f Merged-In: Ie2852467c21c6c7bdfa1c75dc60f49f28e6f709f --- test/configs/rss_stat.cfg | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/configs/rss_stat.cfg diff --git a/test/configs/rss_stat.cfg b/test/configs/rss_stat.cfg new file mode 100644 index 000000000..010aa9746 --- /dev/null +++ b/test/configs/rss_stat.cfg @@ -0,0 +1,17 @@ +buffers: { + size_kb: 512 + fill_policy: DISCARD +} + +data_sources: { + config { + name: "linux.ftrace" + ftrace_config { + ftrace_events: "sched_switch" + ftrace_events: "kmem/rss_stat" + throttle_rss_stat: true + } + } +} + +duration_ms: 10000 -- cgit v1.2.3