Re:Show HN: Single-Header Profiler for C++17
by GeorgeHaldane on Monday April 14, 2025 @02:26PM
(#43684520)
I've though about this but had yet to come up with a simple approach, perhaps something like a python script hooked to GCC-XML can do the trick, will look into that in the future.
One inconvenience with this library's approach is having to modify the code to add/remove instrumentation, compared to something like GNU gprof which has compiler support and doesn't require modifying the code.