mstange / samply

Command-line sampling profiler for macOS and Linux
Apache License 2.0
1.96k stars 48 forks source link

Add command line arguments to specify symbol paths and symbol servers #235

Closed mstange closed 1 month ago

mstange commented 1 month ago

This adds the following:

      --symbol-dir <SYMBOL_DIR>
          Extra directories containing symbol files
      --windows-symbol-server <WINDOWS_SYMBOL_SERVER>
          Additional URLs of symbol servers serving PDB / DLL / EXE files
      --windows-symbol-cache <WINDOWS_SYMBOL_CACHE>
          Overrides the default cache directory for Windows symbol files which were downloaded from a symbol server
      --breakpad-symbol-server <BREAKPAD_SYMBOL_SERVER>
          Additional URLs of symbol servers serving Breakpad .sym files
      --breakpad-symbol-cache <BREAKPAD_SYMBOL_CACHE>
          Overrides the default cache directory for Breakpad symbol files
      --simpleperf-binary-cache <SIMPLEPERF_BINARY_CACHE>
          Extra directory containing symbol files, with the directory structure used by simpleperf's scripts

This makes it so that, if you use simpleperf to profile a Firefox for Android build from the Play Store, you can use samply import perf.data --breakpad-symbol-server https://symbols.mozilla.org/ and you will get full Firefox symbols.