Dear All,
I am always using geany, but now this is the first time I prepare to look at geany source code. I have one question about memory allocation. When we open one new file, there will be one new tag in geany. How could I track all memory allocation(g_malloc) related with this tag? Or would it be possible to track all related functions with this tag?
Thank you very much!
Best Regards, Pengfei
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/682
Closed #682.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/682#event-430816159
Unfortunately its not possible to track allocations related to one file, its not even possible to track all allocations since Geany uses g_malloc (IIUC you can track this, see Glib docs), libraries use libc malloc and Scintilla uses C++ new.
This sort of question is better asked on the mailing list, it is not an issue. Will close and you can ask any follow up questions there.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/682#issuecomment-146690281
Thanks your suggestion.
g_malloc is one wrapper of malloc. If I track malloc, I think I can get all memory allocations, right? According to my observation, each tab for one file is related with one thread, right? So if I can track all memory allocation of this thread, I can get all memory allocation for this file, right?
Thank you very much!
On Thu, Oct 8, 2015 at 5:24 PM, elextr notifications@github.com wrote:
Unfortunately its not possible to track allocations related to one file, its not even possible to track all allocations since Geany uses g_malloc (IIUC you can track this, see Glib docs), libraries use libc malloc and Scintilla uses C++ new.
This sort of question is better asked on the mailing list, it is not an issue. Will close and you can ask any follow up questions there.
— Reply to this email directly or view it on GitHub https://github.com/geany/geany/issues/682#issuecomment-146690281.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/682#issuecomment-146693434
Please continue the discussion on the [mailing list]( http://www.geany.org/Support/MailingList) as requested, this is not an issue.
On 9 October 2015 at 07:39, pfsun notifications@github.com wrote:
Thanks your suggestion.
g_malloc is one wrapper of malloc. If I track malloc, I think I can get all memory allocations, right? According to my observation, each tab for one file is related with one thread, right? So if I can track all memory allocation of this thread, I can get all memory allocation for this file, right?
Thank you very much!
On Thu, Oct 8, 2015 at 5:24 PM, elextr notifications@github.com wrote:
Unfortunately its not possible to track allocations related to one file, its not even possible to track all allocations since Geany uses g_malloc (IIUC you can track this, see Glib docs), libraries use libc malloc and Scintilla uses C++ new.
This sort of question is better asked on the mailing list, it is not an issue. Will close and you can ask any follow up questions there.
— Reply to this email directly or view it on GitHub https://github.com/geany/geany/issues/682#issuecomment-146690281.
— Reply to this email directly or view it on GitHub https://github.com/geany/geany/issues/682#issuecomment-146693434.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/682#issuecomment-146698404
github-comments@lists.geany.org