Add ThreadInfo to process_info.fbs
Add `per_thread_info` argument for the aos Top constructor.
When enabled, this will cause Top to include cpu usage per
per thread for all processes it reports on.
The process_info.fbs file has been updated to include this new
optional field.
Change-Id: I394a2ccb09f714b0edf0249fdab4332742bf3d3e
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/dump_rtprio.cc b/aos/dump_rtprio.cc
index e1286e2..74ade74 100644
--- a/aos/dump_rtprio.cc
+++ b/aos/dump_rtprio.cc
@@ -258,7 +258,8 @@
aos::ShmEventLoop event_loop(&config.message());
event_loop.SkipTimingReport();
event_loop.SkipAosLog();
- aos::util::Top top(&event_loop, true);
+ aos::util::Top top(&event_loop, aos::util::Top::TrackThreadsMode::kEnabled,
+ aos::util::Top::TrackPerThreadInfoMode::kDisabled);
top.set_track_top_processes(true);
const cpu_set_t all_cpus = FindAllCpus();