Re: Two observations using GDB 13 snapshot

Tom Tromey
2022-12-29T18:18:02Z

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

Eli> The profile produced by gprof is attached. The time information looks
Eli> very inaccurate, almost bogus, to me (since GDB ran for more than 2
Eli> minutes, I expected to see gdb_main show 130 as the value of
Eli> cumulative seconds, but the profile shows only 2.21?).

Yeah, it looks strange to me as well. I don't think it really shows us
where all the time is going.

gprof also thinks gdb only ran for a couple of seconds:

> granularity: each sample hit covers 4 byte(s) for 0.44% of 2.29 seconds

I wonder if just randomly interrupting gdb a few times during that 2
minutes and doing a "bt" would be more informative.

Tom