|
Last change
on this file was
4506,
checked in by westram, 19 years ago
|
- mentioned profile_annotate.pl
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
988 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | Short instructions how to profile ARB using valgrind |
|---|
| 3 | ==================================================== |
|---|
| 4 | |
|---|
| 5 | General notes: |
|---|
| 6 | -------------- |
|---|
| 7 | |
|---|
| 8 | * most ARB programs start 2 processes -> normally simply use the bigger out file |
|---|
| 9 | * aw_message can cause serious amounts of performance loss |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | valgrind 3.2.0: |
|---|
| 13 | --------------- |
|---|
| 14 | |
|---|
| 15 | 1. run valgrind --tool=callgrind programname prog_arguments |
|---|
| 16 | 2. perform the actions you want to get info for and terminate 'programname' |
|---|
| 17 | |
|---|
| 18 | 3a. run 'profile_annotate.pl' |
|---|
| 19 | |
|---|
| 20 | or directly |
|---|
| 21 | |
|---|
| 22 | 3b. run 'callgrind_annotate --tree=both --inclusive=yes [--auto=yes] callgrind.out.xxx' |
|---|
| 23 | where xxx is the PID of the program. |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | Older valgrind versions: |
|---|
| 27 | ------------------------ |
|---|
| 28 | |
|---|
| 29 | 1. Install calltree (a valgrind extension) |
|---|
| 30 | 2. run 'calltree --trace-children=yes programname prog_arguments' |
|---|
| 31 | 3. perform the actions you want to get info for and terminate 'programname' |
|---|
| 32 | 4. run 'ct_annotate --tree=both --inclusive=yes --auto=yes cachegrind.out.xxx' |
|---|
| 33 | where xxx is the PID of the program. |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.