commit | 340cc0b7065b09a2f3ff0d5525d52603c5d23147 | [log] [tgz] |
---|---|---|
author | Kalesh Singh <kaleshsingh@google.com> | Thu Jan 14 20:14:27 2021 -0500 |
committer | Kalesh Singh <kaleshsingh@google.com> | Fri Jan 22 09:31:07 2021 -0500 |
tree | c7af49415f352af13c5437ca08987f84f328f382 | |
parent | ec21ade120d6eb26d6c3534688dee24bfa940112 [diff] |
traced_probes: Add kmem_activity trigger kmem_activity gets triggered when there is detected kernel memory activity -- kswapd, direct reclaim, compaction. This is used a hueristic for memory pressure, which allows for signaling perfetto to capture system memory state during periods of memory pressure. Bug: 155928119 Test: adb root adb push test/configs/mm_events.cfg /data/local/tmp/ adb shell 'cat /data/local/tmp/mm_events.cfg | perfetto --txt -c - -o /data/misc/perfetto-traces/trace' [In another shell] Synthesize memory pressure (e.g adb shell /data/local/tmp/lmkd_unit_test) adb pull /data/misc/perfetto-traces/trace Change-Id: Id0a5dad2f6e557606801bad0a58ea180123f54fd
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.