Performance Check
Requires Winlib and Gaklib.
A simple program to show the execution times of your program functions.
To get the analyse you must perform the following steps:
- Enable profiling. Turn on DEBUG-Mode of your compiler or define the macro PROFILER #define PROFILER 1
- include <gak/logfile.h>
- Enable a profile level at start of main: doEnableProfile(gakLogging::llInfo);
- All C++ methods you want to analyze should have the first statement doEnterFunctionEx doEnterFunctionEx(gakLogging::llInfo, "main");
- When profiling is disabled, all profiling functions do not have an effect. So there ist no performance issue in your release build.
- Run your application.
- Just start the perfcheck with a CSV-File generated by your program if the profiling was enabled.
Example: perfcheck c:\temp\gaklib12345.csv
Note: doEnterFunctionEx works in C++-Mode, only.
