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/starter/irq_affinity.cc b/aos/starter/irq_affinity.cc
index a188127..7459e5e 100644
--- a/aos/starter/irq_affinity.cc
+++ b/aos/starter/irq_affinity.cc
@@ -148,7 +148,8 @@
EventLoop *event_loop,
const aos::FlatbufferDetachedBuffer<aos::starter::IrqAffinityConfig>
&irq_affinity_config)
- : top_(event_loop) {
+ : top_(event_loop, aos::util::Top::TrackThreadsMode::kDisabled,
+ aos::util::Top::TrackPerThreadInfoMode::kDisabled) {
if (irq_affinity_config.message().has_kthreads()) {
PopulateThreads(irq_affinity_config.message().kthreads(), &kthreads_);
}