Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save PolywickStudio/9cd285b36d25589e769b6ede6d7bf55e to your computer and use it in GitHub Desktop.

Select an option

Save PolywickStudio/9cd285b36d25589e769b6ede6d7bf55e to your computer and use it in GitHub Desktop.
Article link:
https://polywickstudio.net/development-diary/Accelerate-your-Apps-using-the-Superluminal-Performance-Profiler
Copy `map2pdb.exe` to a folder included in your system's environment path
https://github.com/andersmelander/map2pdb/releases
The below paths are suggested directory for specific Delphi versions.
For Delphi 12.2, Delphi 12.3
C:\Users\Public\Documents\Embarcadero\Studio\23.0\Bpl
For Delphi 12.1:
C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl
For Delphi 12.0:
C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl
For Delphi 11.3:
C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl
Using a post-build event:
map2pdb.exe -pdb:(OUTPUTDIR)(OUTPUTFILENAME).pdb -bind:(OUTPUTDIR)(OUTPUTFILENAME) (OUTPUTDIR)(OUTPUTNAME).map
Using a batch file
---start---
map2pdb.exe -pdb:.\win64DebugProfilerSample1.pdb -bind:.\win64DebugProfilerSample1.exe .\win64DebugProfilerSample1.map
pause
---stop---
where win64DebugProfilerSample.exe is your output project EXE filename.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment