<div dir="ltr"><div><div><div><div><div>Hello, Carl.<br><br></div>Yes, I have some ideas.<br></div>I just overloaded the operator new and delete to record every memory allocation and releasing.<br></div>I assumed the memory allocation and releasing will keep a balance after a start-up time. So I just record all memory blocks allocated in a time interval [a,a + t1] but not released in [a, a + t1 + t2], where t2 is long enough that no cache entries or PIT entries created in [a, a+t1] will remain. The recored blocks are thought to be "leaked", though there may be references point to it.<br></div>But it's a bit hard to find who allocated a specified memory block. I used to do it manually and it took me a lot of time. Recently I found I could use backtrace function to get the call stack and use scripts to convert address to line number. I'm writing it now. If you have interests in this trick, I can publish it to GitHub when it's finished before long.<br><br></div><div>Xinyu Ma.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-12 21:21 GMT+09:00 Carl Zu <span dir="ltr"><<a href="mailto:carlzu8@gmail.com" target="_blank">carlzu8@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Dear all, <br><br></div>Does anybody have an experience of using a profiler with ndnSIM? I am having a memory leakage issue, which leads to having different errors per run. But apparently, the problem stems from a memory leakage issue.<br><br></div>Any guidance appreciated.<br><br></div>Thanks and regards,<br></div>C<br></div>
<br>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>