mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
2
Profiling Keyman for Windows using VTune
Marc Durdin edited this page 2025-09-19 14:40:45 +02:00
Delphi apps in Keyman for Windows can be profiled with Intel VTune and map2pdb. Note that the binary map2pdb is often flagged as malware because it rewrites .exe files.
- Configure your project linker options to output a Detailed map file.
- Compile the project.
- Execute map2pdb -bind
- Make sure you copy both .pdb and .exe/dll if you need to put them in Progra mFiles etc
- Profile the application with VTune (or whatever)
See also https://en.delphipraxis.net/topic/4853-map2pdb-profiling-with-vtune/
Note: I do a debug build, then copy the relevant executables into their install locations in order to get a good trace. VTune has a lot of hand-holding when you get started, so shouldn't be totally impossible to fathom ;-)