GNOME Bugzilla – Bug 614619
Add support for dtrace/SystemTap
Last modified: 2010-05-28 13:28:15 UTC
See patch
Created attachment 157720 [details] [review] Add support for dtrace/SystemTap Similar to the probes that will be added to glib: https://bugzilla.gnome.org/show_bug.cgi?id=606044 this commit adds basic infrastructure for probes, and a *very* limited set of probe points. The current probe points just track proxies for GObjects; other ideas for useful probes would be function invocations, boxed/structs, etc.
Created attachment 157721 [details] sample combined systemtap script This example SystemTap file monitors g_malloc, GObject, and JS proxies for GObjects, dumping statistics to stdout in JSON format.
invocation for the sample script is: $ stap -v -I /src/build/jhbuild/share/systemtap/tapset/ -x $(pidof mutter) ~walters/tmp/alive.stp Substitute paths as appropriate.
Created attachment 157753 [details] [review] Add support for dtrace/SystemTap Similar to the probes that will be added to glib, this commit adds basic infrastructure for probes, and a *very* limited set of probe points. The current probe points just track proxies for GObjects; other ideas for useful probes would be function invocations, boxed/structs, etc.
Created attachment 157761 [details] [review] Add support for dtrace/SystemTap Similar to the probes that will be added to glib, this commit adds basic infrastructure for probes, and a *very* limited set of probe points. The current probe points just track proxies for GObjects; other ideas for useful probes would be function invocations, boxed/structs, etc.
Created attachment 162149 [details] [review] Add support for dtrace/SystemTap Enabled by default now
Review of attachment 162149 [details] [review]: Looks good. There'll probably be other trace points in the future, but this is a good start.
Attachment 162149 [details] pushed as 38281cc - Add support for dtrace/SystemTap