andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 1 | # Linux Profiling |
| 2 | |
qyearsley | c0dc6f4 | 2016-12-02 22:13:39 | [diff] [blame] | 3 | How to profile Chromium on Linux. |
andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 4 | |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 5 | See |
| 6 | [Profiling Chromium and WebKit](https://sites.google.com/a/chromium.org/dev/developers/profiling-chromium-and-webkit) |
| 7 | for alternative discussion. |
andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 8 | |
| 9 | ## CPU Profiling |
| 10 | |
| 11 | gprof: reported not to work (taking an hour to load on our large binary). |
| 12 | |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 13 | oprofile: Dean uses it, says it's good. (As of 9/16/9 oprofile only supports |
| 14 | timers on the new Z600 boxes, which doesn't give good granularity for profiling |
| 15 | startup). |
andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 16 | |
| 17 | TODO(willchan): Talk more about oprofile, gprof, etc. |
| 18 | |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 19 | Also see |
| 20 | https://sites.google.com/a/chromium.org/dev/developers/profiling-chromium-and-webkit |
andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 21 | |
| 22 | ### perf |
| 23 | |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 24 | `perf` is the successor to `oprofile`. It's maintained in the kernel tree, it's |
|
|