Profile/Systemtap: Difference between revisions
No edit summary |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 10: | Line 10: | ||
$ git clone git://sourceware.org/git/systemtap.git | $ git clone git://sourceware.org/git/systemtap.git | ||
$ cd systemtap/ | $ cd systemtap/ | ||
$ ./configure --prefix=/home/ | $ ./configure --prefix=/home/[your-user-name]/systemtap-2.5-27886 | ||
$ make | $ make | ||
$ make install | $ make install | ||
| Line 49: | Line 49: | ||
=== Using with sugar-buid === | === Using with sugar-buid === | ||
In sugar-build, we build glib, then we need move the global glib and gobject probes, to not have | In sugar-build, we build glib, then we need move the global glib and gobject probes, to not have conflicts. | ||
I renamed the global probes: | I renamed the global probes: | ||
| Line 59: | Line 59: | ||
Now we can download a sample test, like [http://people.gnome.org/~walters/glib-memtrace2.stp] and run it in our sugar-build session. | Now we can download a sample test, like [http://people.gnome.org/~walters/glib-memtrace2.stp] and run it in our sugar-build session. | ||
To | To define as target a running process, can use the -x parameter. (Remember stap monitor all the system) | ||
To get the sugar process PID, can do: | To get the sugar process PID, can do: | ||