| ~ | | Changeset 9213:2c3700a56b60 |
| | ~ | Changeset 9226:80a0423ec9e5 |
| | |
|
| | | scons: Add a target for google-perftools profiling |
| | |
|
| | | This patch adds a new target called 'perf' that facilitates profiling
|
| | | using google perftools rather than gprof. The perftools CPU profiler
|
| | | offers plenty useful information in addition to gprof, and the latter
|
| | | is kept mostly to offer profiling also on non-Linux hosts. |
| - | |
|
| - | | A small update, after running twolf on ARM with the CPU profiler the
|
| - | | output starts with: |
| - | |
|
| - | | Total: 96679 samples
|
| - | | 2437 2.5% 2.5% 2561 2.6% TimeBuffer::access (inline)
|
| - | | 2266 2.3% 4.9% 2501 2.6% TimeBuffer::advance
|
| - | | 2263 2.3% 7.2% 2594 2.7% RefCounted::decref (inline)
|
| - | | 2252 2.3% 9.5% 2252 2.3% Stats::StatStor::inc (inline)
|
| - | | 2099 2.2% 11.7% 4711 4.9% RefCountingPtr::del (inline)
|
| - | | 2087 2.2% 13.9% 2087 2.2% SLL_Pop
|
| - | | 1858 1.9% 15.8% 2327 2.4% RefCountingPtr::copy (inline)
|
| - | | 1468 1.5% 17.3% 1468 1.5% tc_new
|
| - | | 1438 1.5% 18.8% 1438 1.5% tc_delete |
| - | |
|
| - | | For this specific benchmark, the O3 CPU accounts for roughly 85% before
|
| - | | the first memory system function shows up. No free lunch... |