tracers+docs: Correcting compilation and installation of trace helpers
Also in this commit an example on how to use trace helpers, including
how to build graphs using R.
diff --git a/utils/tracers/ndn-l3-rate-tracer.cc b/utils/tracers/ndn-l3-rate-tracer.cc
index 6604f0b..f588503 100644
--- a/utils/tracers/ndn-l3-rate-tracer.cc
+++ b/utils/tracers/ndn-l3-rate-tracer.cc
@@ -157,7 +157,7 @@
<< STATS(2).fieldName << "\t" \
<< STATS(3).fieldName << "\t" \
<< STATS(0).fieldName << "\t" \
- << STATS(1).fieldName << "\n";
+ << STATS(1).fieldName / 1024.0 << "\n";
void
L3RateTracer::Print (std::ostream &os) const
@@ -236,8 +236,8 @@
Ptr<const ContentObjectHeader> header, Ptr<const Packet> payload,
bool fromCache, Ptr<const Face> face)
{
- m_stats[face].get<0> ().m_inData ++;
- m_stats[face].get<1> ().m_inData += header->GetSerializedSize () + payload->GetSize ();
+ m_stats[face].get<0> ().m_outData ++;
+ m_stats[face].get<1> ().m_outData += header->GetSerializedSize () + payload->GetSize ();
}
void
@@ -245,8 +245,8 @@
Ptr<const ContentObjectHeader> header, Ptr<const Packet> payload,
Ptr<const Face> face)
{
- m_stats[face].get<0> ().m_outData ++;
- m_stats[face].get<1> ().m_outData += header->GetSerializedSize () + payload->GetSize ();
+ m_stats[face].get<0> ().m_inData ++;
+ m_stats[face].get<1> ().m_inData += header->GetSerializedSize () + payload->GetSize ();
}
void