Add thermal category to atrace.
Thermal has become more and more interesting when study
application/system behavior. This CL adds a new thermal
category into atrace.
Bug: 160818586
Test: take systrace
Change-Id: Ia64ddebfc821fb3d48c7b888ca84cf970eebff77
(cherry picked from commit 86d46df52079cc9c83a54223b25656605fff87ab)
Merged-In: Ia64ddebfc821fb3d48c7b888ca84cf970eebff77
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp
index 28fdaa4..fc3572c 100644
--- a/cmds/atrace/atrace.cpp
+++ b/cmds/atrace/atrace.cpp
@@ -239,6 +239,10 @@
{ OPT, "events/kmem/ion_heap_shrink/enable" },
{ OPT, "events/ion/ion_stat/enable" },
} },
+ { "thermal", "Thermal event", 0, {
+ { REQ, "events/thermal/thermal_temperature/enable" },
+ { OPT, "events/thermal/cdev_update/enable" },
+ } },
};
struct TracingVendorCategory {