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]
Other format: [Raw text]

RFC: have maint print statistics print a little more


At Apple we're often faced with a mysteriously slow gdb.  It would
be very helpful to know if we've just expanded all the psymtabs
into symtabs, or if we have some problem from the compiler that is
causing us to get a vastly larger number of psymtabs for header
files than we would normally have.

This patch adds a few new entries to the objfile information printed
by maint print statistics:

Statistics for '/home/jmolenda/sware/gdb/b/gdb/gdb':
  Number of "stab" symbols read: 139907
  Number of "minimal" symbols read: 8022
  Number of "partial" symbols read: 24584
  Number of "types" defined: 4794
* Number of psym tables (not yet expanded): 904
* Number of symbol tables: 260
* Number of symbol tables with line tables: 32
* Number of symbol tables with blockvectors: 33
  Space used by a.out string tables: 1060259
  Total memory used for psymbol obstack: 1190666
  Total memory used for psymbol cache: 513072
  Total memory used for macro cache: 4072
  Total memory used for symbol obstack: 1717613
  Total memory used for type obstack: 550039


I highlighted the new entries with '*'.  This would be a very useful
piece of information when presented with a slow gdb here at Apple
- I think other folks may find it useful as well.

This patch introduces no new testsuite failures.

Comments?

J

Attachment: pa.txt
Description: Text document


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