<div dir="ltr"><div><div><div>Dear all, <br><br></div>Thank you very much for the information.<br><br>@Xinyu: I will check the code, thanks!<br><br></div>Best regards,<br></div>C<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 14, 2018 at 7:43 PM, Xinyu Ma <span dir="ltr"><<a href="mailto:bitmxy@gmail.com" target="_blank">bitmxy@gmail.com</a>></span> wrote:<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><div>Hello, Carl.<br><br></div>The beta version is uploaded to <a href="https://github.com/zjkmxy/memory_monitor" target="_blank">https://github.com/zjkmxy/<wbr>memory_monitor</a>.<br></div>You may have a try. Please mail to me if there are any questions.<br></div><br></div>May it helps,<br></div>Xinyu Ma.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-13 2:14 GMT+09:00 Xinyu Ma <span dir="ltr"><<a href="mailto:bitmxy@gmail.com" target="_blank">bitmxy@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><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.<span class="m_2366392996710194608HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_2366392996710194608HOEnZb"><font color="#888888"><div>Xinyu Ma.<br></div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_2366392996710194608h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_2366392996710194608h5"><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></div></div><span>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/m<wbr>ailman/listinfo/ndnsim</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>