After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 614619 - Add support for dtrace/SystemTap
Add support for dtrace/SystemTap
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2010-04-01 21:46 UTC by Colin Walters
Modified: 2010-05-28 13:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add support for dtrace/SystemTap (4.93 KB, patch)
2010-04-01 21:47 UTC, Colin Walters
none Details | Review
sample combined systemtap script (2.01 KB, text/plain)
2010-04-01 21:49 UTC, Colin Walters
  Details
Add support for dtrace/SystemTap (7.97 KB, patch)
2010-04-02 13:51 UTC, Colin Walters
none Details | Review
Add support for dtrace/SystemTap (8.20 KB, patch)
2010-04-02 14:59 UTC, Colin Walters
none Details | Review
Add support for dtrace/SystemTap (8.20 KB, patch)
2010-05-27 21:03 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2010-04-01 21:46:59 UTC
See patch
Comment 1 Colin Walters 2010-04-01 21:47:02 UTC
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.
Comment 2 Colin Walters 2010-04-01 21:49:13 UTC
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.
Comment 3 Colin Walters 2010-04-01 21:50:29 UTC
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.
Comment 4 Colin Walters 2010-04-02 13:51:06 UTC
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.
Comment 5 Colin Walters 2010-04-02 14:59:05 UTC
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.
Comment 6 Colin Walters 2010-05-27 21:03:16 UTC
Created attachment 162149 [details] [review]
Add support for dtrace/SystemTap

Enabled by default now
Comment 7 Johan (not receiving bugmail) Dahlin 2010-05-28 12:31:13 UTC
Review of attachment 162149 [details] [review]:

Looks good. There'll probably be other trace points in the future, but this is a good start.
Comment 8 Colin Walters 2010-05-28 13:28:12 UTC
Attachment 162149 [details] pushed as 38281cc - Add support for dtrace/SystemTap