utils/tracers: Adding *::Destroy () method in Tracers
This way it becomes possible to do clean up before applications
terminates (useful if the same scenario is used for several simulation
runs or if there is a need for post-processing of the resulting files)
diff --git a/utils/tracers/ndn-cs-tracer.cc b/utils/tracers/ndn-cs-tracer.cc
index 0c1becb..7f2553d 100644
--- a/utils/tracers/ndn-cs-tracer.cc
+++ b/utils/tracers/ndn-cs-tracer.cc
@@ -53,6 +53,12 @@
}
void
+CsTracer::Destroy ()
+{
+ g_tracers.clear ();
+}
+
+void
CsTracer::InstallAll (const std::string &file, Time averagingPeriod/* = Seconds (0.5)*/)
{
using namespace boost;