<p dir="ltr">Hi, <br>
My program is in C++. <br>
Is there another method to run my program?  Is it more efficient? </p>
<div class="gmail_quote">On Jun 11, 2015 2:02 PM, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Hisham,<div><br></div><div>Sorry for the delayed reply.  Is your simulation scenario written in c++ or python?  Also, how do you run the simulation?  If with ./waf --run, then the python you see is probably related to this part.</div><div><br></div><div>---</div><div>Alex</div><div><br><div><blockquote type="cite"><div>On Jun 3, 2015, at 8:28 PM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" target="_blank">hishamfarahat@gmail.com</a>> wrote:</div><br><div><div dir="ltr" style="font-family:Menlo-Regular;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">One more thing.<div>Why python2.7 is taking ~20%?</div><div><br></div></div><div class="gmail_extra" style="font-family:Menlo-Regular;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br><div class="gmail_quote">On Wed, Jun 3, 2015 at 10:28 PM, Hisham Farahat<span> </span><span dir="ltr"><<a href="mailto:hishamfarahat@gmail.com" target="_blank">hishamfarahat@gmail.com</a>></span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div>Yeah, I run my code in optimized mode. </div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev<span> </span><span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Hisham,<br><br>I hope you’re compiling and running code in optimized mode (./waf configure -d optimized).<br><br>In optimized mode, ~Ptr() should just decrement a counter, in debug mode there could be more complex things happening, though I’m not sure why would it take 50% of time.<br><br>—<br><span><font color="#888888">Alex<br></font></span><div><div><br>> On May 2, 2015, at 6:59 PM, Hisham Farahat <<a href="mailto:hishamfarahat@gmail.com" target="_blank">hishamfarahat@gmail.com</a>> wrote:<br>><br>> Hi,<br>> I'm trying to profile ndnSIM 1.0, because My simulation scenarios are taking too long to finish. This was the results:<br>> CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated)<br>> Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000<br>> samples  %        app name                 symbol name<br>> 610808   49.4017  ndn         ns3::Ptr<ns3::ndn::Face>::~Ptr()<br>> 268401   21.7081  python2.7                /usr/bin/python2.7<br>> 107633    8.7053  ndn        ns3::Ptr<ns3::Packet>::~Ptr()<br>> 76617     6.1967  ndn         ns3::Ptr<ns3::Packet const>::~Ptr()<br>> 23462     1.8976  ndn         ns3::Ptr<ns3::ndn::Interest const>::~Ptr()<br>> .....<br>><br>> is this normal? 50% on ~Ptr() ?<br>> Am i doing something wrong?<br>><br>> Regards,<br><br></div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">--<span> </span><br><div>Hisham Farahat</div></font></span></div></blockquote></div><br><br clear="all"><div><br></div>--<span> </span><br><div>Hisham Farahat</div></div></div></blockquote></div><br></div></div></blockquote></div>