This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]