I read the page, but the tracer class only provides installAll medthod.<div>It installs the tracer on every node, which is very slow. (It has more than 3k nodes)</div><div>Can I just install the tracer on producers?</div><div>
<br></div><div>Thanks,</div><div>Chengyu<br><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 12:50 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I think you overcomplicate things.  Do you need this information in runtime or just for later analysis?</div>
<div><br></div><div>If for later analysis, ndnSIM has a couple of metric tracing helpers that already collect this sort of information (<a href="http://ndnsim.net/metric.html#packet-level-trace-helpers" target="_blank">http://ndnsim.net/metric.html#packet-level-trace-helpers</a>).  Both ndn::L3AggregateTracer and ndn::L3RateTracer will give the information you're interested in.</div>
<div><br></div><div>Is it what you need or you need something more than just numbers?  </div><div><br></div><div>---</div><div>Alex</div><br><div><div><div class="h5"><div>On Feb 27, 2013, at 4:56 PM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu" target="_blank">chengyu@cs.colostate.edu</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5">Hi~<div><br></div><div>Please forgive me if I missed something apparent.</div><div><br></div><div>I want to collect the information of how many Interests and what Interests arrive on a node from different faces.</div>
<div>
Unfortunately, I did not find an example that shows how to collect those data. </div><div><br></div><div>I find a class <span style="background-color:rgb(250,250,250);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-weight:bold;line-height:23px">ns3::ndn::NetDeviceFace</span> that seems suit my requirements. And I need to override RegisterProtocolHandler function.</div>

<div>Is it correct?</div><div><br></div><div>Or is there a Tracer class can collect the data for me?</div><div><br></div><div>Thanks,</div><div>Chengyu</div></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div></blockquote></div><br></div>