On Tue, Oct 26, 2021 at 10:48:45PM +0700, Robert Elz wrote: > Date: Tue, 26 Oct 2021 15:37:56 +0200 > From: Joerg Sonnenberger <jo...@bec.de> > Message-ID: <yxgetdqsrgtjx...@bec.de> > > | Personally, I would prefer to just kill -pg support completely, but > | that's a separate discussion. > > Yes, it is. > > | I don't think per-file profiling is that useful > > Nor do I in general. However, doing routine call counting on mcount > (or anything it calls) would simply be absurd. If you want to > know how mant times mcount has been called, you simply sum all the other > counters. (pc sampling, however it is done, detecting mcount is fine).
The existing attribute already does that. Joerg