1 |
Donnie Berkholz wrote: |
2 |
> To get oprofile going, build the kernel module (it's included in the |
3 |
> main kernel, just enable it -- CONFIG_PROFILING in Instrumentation), run |
4 |
> `make vmlinux` in /usr/src/linux, emerge oprofile, then run this little |
5 |
> script like this: |
6 |
> ./oprof someapp |
7 |
> |
8 |
> It will start profiling, and stop when you quit that app. Make sure you |
9 |
> run it long enough so that the app's startup stuff isn't the primary |
10 |
> thing you profile; you want to profile the runtime slowdowns. |
11 |
|
12 |
One more note, oprofile will profile _everything_ your computer is |
13 |
doing, so make sure you are doing as little as possible that you don't |
14 |
want to end up in the results. |
15 |
|
16 |
Thanks, |
17 |
Donnie |