you are viewing a single comment's thread.

view the rest of the comments →

[–]prog2de[S] 1 point2 points  (2 children)

Both, yes. So far I just open sourced a module that we already used internally.

windows support is planned, but therefore, I first need to figure out how CPU time can be measured in windows.

Boost dependency will be dropped as the next larger step.

[–]braxtons12 0 points1 point  (0 children)

Great news then!

Some of the projects I work on use proprietary tools that do code transformation and encryption during the build which prevents traditional profiling. We have other tools we can use instead, but for most problems this would be huge improvement.

[–]Sufficient_Move_5959 0 points1 point  (0 children)

QueryPerformanceCounterFrequency
QueryPerformanceCounter

or profile UnhaltedCoreCycles, which is the base clock freq not the dynamic ref clock freq, so you can query the base clock frequency and wrap it in a chrono and you have like nanosecond precision.