%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/systemtap/examples/apps/
Upload File :
Create Path :
Current File : //usr/share/systemtap/examples/apps/gmalloc_watch.stp

#!/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);
}

Zerion Mini Shell 1.0