diff options
author | Colin Cross <ccross@android.com> | 2014-08-18 15:22:13 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-08-18 17:48:16 -0700 |
commit | 580407f1075fe97d7466724f71cc03816b7404fe (patch) | |
tree | 6496cb0479490f15723986908ab840646c751354 /cmds/atrace | |
parent | f440d398faad3bafe2e7f365c62163aca45e36a3 (diff) | |
download | frameworks_native-580407f1075fe97d7466724f71cc03816b7404fe.zip frameworks_native-580407f1075fe97d7466724f71cc03816b7404fe.tar.gz frameworks_native-580407f1075fe97d7466724f71cc03816b7404fe.tar.bz2 |
atrace: add memory reclaim tracing
Add "memreclaim" to trace direct reclaim, shrink slab cycles, and
kswapd waking up and sleeping.
Change-Id: I4cfb313820a3a9aa5a9d07a39c42db41c24304a6
Diffstat (limited to 'cmds/atrace')
-rw-r--r-- | cmds/atrace/atrace.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp index 9688cc6..fb40193 100644 --- a/cmds/atrace/atrace.cpp +++ b/cmds/atrace/atrace.cpp @@ -129,6 +129,12 @@ static const TracingCategory k_categories[] = { { "workq", "Kernel Workqueues", 0, { { REQ, "/sys/kernel/debug/tracing/events/workqueue/enable" }, } }, + { "memreclaim", "Kernel Memory Reclaim", 0, { + { REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_begin/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_end/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_wake/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_sleep/enable" }, + } }, }; /* Command line options */ |