Thanks your suggestion.<br>
<br>
g_malloc is one wrapper of malloc. If I track malloc, I think I can get all<br>
memory allocations, right?<br>
According to my observation, each tab for one file is related with one<br>
thread, right? So if I can track all memory allocation of this thread, I<br>
can get all memory allocation for this file, right?<br>
<br>
Thank you very much!<br>
<br>
On Thu, Oct 8, 2015 at 5:24 PM, elextr <notifications@github.com> wrote:<br>
<br>
> Unfortunately its not possible to track allocations related to one file,<br>
> its not even possible to track all allocations since Geany uses g_malloc<br>
> (IIUC you can track this, see Glib docs), libraries use libc malloc and<br>
> Scintilla uses C++ new.<br>
><br>
> This sort of question is better asked on the mailing list, it is not an<br>
> issue. Will close and you can ask any follow up questions there.<br>
><br>
> —<br>
> Reply to this email directly or view it on GitHub<br>
> <https://github.com/geany/geany/issues/682#issuecomment-146690281>.<br>
><br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/682#issuecomment-146693434">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3SSf8Kb7lJi2REXfuMX8RPYocARks5o5toHgaJpZM4GLajq.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/682#issuecomment-146693434"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>