code icon indicating copy to clipboard operation
code copied to clipboard

Profiling: Enable profiling in code using google-perftools

Open jeremypw opened this issue 10 months ago • 2 comments

Allow obtaining cpu and/or heap profile on specified parts of the code using tools from google-perftools package. The libraries are optionally linked in according to the meson_option.txt setting. The profilers can be switched on and off in the desired section of code using conditional compilation flags. Some basic instructions are included in the code.

Profiling the whole app can be done from the commandline without compiling in the libraries but the advantage of having the libraries compiled in is that profiling can be switched on and off in specific parts of the code only.

By default the libraries are not compiled in so these changes will have no effect on the 'ordinary' user.

jeremypw avatar Feb 13 '25 17:02 jeremypw

@jeremypw Can we merge it?

leonardo-lemos avatar Jun 14 '25 16:06 leonardo-lemos

@leonardo-lemos Best wait until after v8.0.0 is released. Just waiting a few days in case any more unexpected regressions are found. I'll release it next week all being well.

jeremypw avatar Jun 14 '25 17:06 jeremypw

@jeremypw I think it is probably safe to merge this now

zeebok avatar Sep 18 '25 00:09 zeebok