dolphin/Source
Gabriel Corona cdce5ace25 Add Linux perf JIT support (/tmp/perf-$pid.map)
'perf' is the standard builtin tool for performance analysis on recent
Linux kernel. Its source code is shipped within the kernel repository.

'perf' has basic support for JIT. For each process, it can read a file
named /tmp/perf-$PID.map. This file contains mapping from address
range to function name in the format:

  41187e2a 1a EmuCode_804a33fc

with the following entries:

 1. beginning of the range (hexadecimal);
 2. size of the range (hexadecimal);
 3. name of the function.

We supply the PowerPC address of the basic block as function name.

Usage:

    DOLPHIN_PERF_DIR=/tmp dolphin-emu &
    perf record -F99 -p $(pgrep dolphin-emu) --call-graph dwarf
    perf script | stackcollapse-perf.pl | grep EmuCode__ | flamegraph.pl > profile.svg

Issue: perf does not have support for region invalidation. It reads
the file in postprocessing. It probably does not work very well if a
JIT region is reused for another basic block: wrong results should be
expected in this case. Currently, nothing is done to prevent this.
2014-11-24 23:18:18 +01:00
..
Android Merge pull request #1580 from lioncash/android 2014-11-20 11:19:35 -05:00
Core Add Linux perf JIT support (/tmp/perf-$pid.map) 2014-11-24 23:18:18 +01:00
DSPSpy Fixed issue with DSP Dump not closing files. 2014-06-23 13:08:43 -07:00
DSPTool msvc: remove some remnants of SDL and DSound from projects and general cleanup. 2014-09-01 21:27:44 -07:00
PCH Windows: Use a shared precompiled header for dolphin code under Source/ 2014-08-14 23:51:13 -07:00
UnitTests Host: Kill off GetRenderWindowSize 2014-11-17 13:44:49 -05:00
VSProps Fix QtCompile.props to work if the repo path contains spaces. 2014-09-27 23:08:18 -07:00
.clang-format UseTab: ForIndentation 2014-05-26 21:28:59 -07:00
CMakeLists.txt Windows: Use a shared precompiled header for dolphin code under Source/ 2014-08-14 23:51:13 -07:00
dolphin-emu.sln Merge pull request #1085 from waddlesplash/refactoring 2014-10-05 21:25:44 -04:00