utils/tracers: Modifying (simplifying) interface for ndnSIM tracers
Now most of the tracers internally keep created instances in a global
variable. From now on, to start tracing, one needs just install a
necessary tracer, like this:
ndn::L3RateTracer::InstallAll ("rate-trace.txt", Seconds (0.5));
Because of the change, it became possible to use the same tracers inside
python scripts.
Also, this commits contains corresponding documentation updates.
diff --git a/utils/tracers/ndn-app-delay-tracer.h b/utils/tracers/ndn-app-delay-tracer.h
index dfbe5ea..d7b1a72 100644
--- a/utils/tracers/ndn-app-delay-tracer.h
+++ b/utils/tracers/ndn-app-delay-tracer.h
@@ -56,7 +56,7 @@
* for the lifetime of simulation, otherwise SEGFAULTs are inevitable
*
*/
- static boost::tuple< boost::shared_ptr<std::ostream>, std::list<Ptr<AppDelayTracer> > >
+ static void
InstallAll (const std::string &file);
/**
@@ -69,7 +69,7 @@
* for the lifetime of simulation, otherwise SEGFAULTs are inevitable
*
*/
- static boost::tuple< boost::shared_ptr<std::ostream>, std::list<Ptr<AppDelayTracer> > >
+ static void
Install (const NodeContainer &nodes, const std::string &file);
/**
@@ -83,7 +83,7 @@
* for the lifetime of simulation, otherwise SEGFAULTs are inevitable
*
*/
- static boost::tuple< boost::shared_ptr<std::ostream>, std::list<Ptr<AppDelayTracer> > >
+ static void
Install (Ptr<Node> node, const std::string &file);
/**