<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Chengyu,</div><div><br></div><div>A slow tracer installation speed is an artifact of the current way I have implemented the tracer.  There is definitely a need to add a couple of other Install methods that would allow more granular installing.  </div><div><br></div><div>If you have time, you can convert the existing InstallAll method to Install(node,...) and the make a new variant of InstallAll to be wrapped on top of Install.   I have a little bit overloaded at the moment to make it myself, but would be happy to integrate your patch/commit.</div><div><br></div><div>There is another improvement that could be made inside Connect method. As it stands right now, there is absolutely no reason to use Config::Connect, which becomes a bottleneck in cases similar to yours.  When I get time, I'll push a correction to optimize the process.</div><div><br>---<div>Alex</div></div><div><br>On Mar 1, 2013, at 1:05 PM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu">chengyu@cs.colostate.edu</a>> wrote:<br><br></div><blockquote type="cite"><div>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>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>ndnSIM mailing list</span><br><span><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a></span><br><span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></span><br></div></blockquote></body></html>