D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
systemtap
/
examples
/
apps
/
Filename :
gmalloc_watch.stp
back
Copy
#!/usr/bin/stap // From https://blog.verbum.org/2011/03/19/analyzing-memory-use-with-systemtap/ // gmalloc_watch.stp: Print calls to g_malloc // Usage: stap ./gmalloc-watch.stp probe glib.mem_alloc { printf ("g_malloc: pid=%d n_bytes=%d\n", pid(), n_bytes); }