Re: [RFA] patch to add 'maint profile-gdb' command

Tom Tromey
2001-09-12T11:58:00Z

>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:

Eli> I'm mostly worried about getting noise into the profile, due to
Eli> profiling that starts as soon as GDB starts running, until you
Eli> turn it off with moncontrol. That noise might hide interesting
Eli> details, and might trick a developer to dismiss important
Eli> findings as noise.

moncontrol(0) is called as the second thing in main(). That's pretty
early. My experience with this patch from when I wrote it is that the
startup noise is ignorable. If it shows up anywhere near the top of
your call graph then you probably don't have a real performance
problem to worry about.

Tom