On Mon, 29 Mar 2021, Gabriele Serra wrote:
I have written a very basic article on GCC Plugins (how to build a plugin
from the ground, some info on APIs, and how to instrument code). The material
is based on GCC 9. The code is fully documented and working.
https://gabrieleserra.ml/blog/2020-08-27-an-introduction-to-gcc-and-gccs-plugins.html
Gabriele thanks for sharing the detailed write up.
in the spirit of 'gcc-help', can you please share pointers as to how one can
profile C++ code using GCC plugins ?
in your example you mention 'f1 ()'; i'd like to replace that with a instance
of class 'X' created and then profile or instrument a member function.
Have you explored that ? any preliminary thoughts on how does one go about
doing it ?
warm regards
Saifi.