<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 10, 2016, at 12:19 AM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com" class="">anilj.mailing@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hi.<br class=""><br class=""></div>Is this the only way to run the ndnSIM applications?<br class=""><div style="margin-left:40px" class="">./waf --run<span class="">=</span>ndn-simple<br class=""></div><br class=""></div>Actually I have compiled the ndnSIM for gprof and want to clarify the final step of gprof processing i.e. <br class=""><div style="margin-left:40px" class="">unix% gprof <i class="">program-name</i> [ <i class="">data-file</i> ] [ > <i class="">output-file</i> ]<br class=""></div><br class=""></div><div class="">I did get some output after executing the command - <br class=""><div style="margin-left:40px" class="">gprof ./build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug  gmon.out<br class=""></div><br class=""></div>Is this correct way to invoke 'ndn-simple' example <u class="">without</u> calling it under ./waf?<br class=""></div></div></div></blockquote></div><br class=""><div class="">There are few things that ./waf --run does.  First, it sets up a few environmental variables, which are important when you run python-based simulations, and not so important for c++ case.  Another, it automatically determines the name of the scenario executable, which can be different depending on which mode you have configured NS-3 (in your case it is debug version, if you configured as -d optimized, the executable suffix would be different).</div><div class=""><br class=""></div><div class="">So. There is no real difference in running through waf or directly.  If you want, you can still use waf, but with additional parameter to customize the command line</div><div class=""><br class=""></div><div class="">./waf --run=ndn-simple --command-template="gprof %s gmon.out"</div><div class=""><br class=""></div><div class="">--</div><div class="">Alex</div><div class=""><br class=""></div></body></html>