Add option to track threads in aos::Top
And use this in dump_rtprio so we can see wpilib threads.
Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: I71163f60608d50ef05ecbe60937a333c2648603a
diff --git a/aos/dump_rtprio.cc b/aos/dump_rtprio.cc
index d36a1c0..30d1b65 100644
--- a/aos/dump_rtprio.cc
+++ b/aos/dump_rtprio.cc
@@ -20,8 +20,8 @@
#include "aos/events/shm_event_loop.h"
#include "aos/init.h"
-#include "aos/util/top.h"
#include "aos/time/time.h"
+#include "aos/util/top.h"
#include "glog/logging.h"
DEFINE_string(config, "aos_config.json", "File path of aos configuration");
@@ -256,7 +256,7 @@
aos::ShmEventLoop event_loop(&config.message());
event_loop.SkipTimingReport();
event_loop.SkipAosLog();
- aos::util::Top top(&event_loop);
+ aos::util::Top top(&event_loop, true);
top.set_track_top_processes(true);
const cpu_set_t all_cpus = FindAllCpus();