This is the mail archive of the gdb-patches@sourceware.org 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]

[PATCH 0/2] btrace: perf improvements


The subsequent patches improve the performance of processing branch trace by
reducing the number of symbol table lookups.

For the currently hard-coded buffer size the impact should only be noticeable
for big programs.  When tracing GDB itself, for example, there is no noticeable
delay.

Subsequent patches will allow the buffer size to be configurable.  Bigger
buffers will require faster processing.

Markus Metzger (2):
  btrace: only search for lines in current symtab
  btrace: avoid symbol lookup

 gdb/btrace.c                                  | 128 +++++++++++++-------------
 gdb/btrace.h                                  |   3 +
 gdb/record-btrace.c                           |   8 +-
 gdb/testsuite/gdb.btrace/exception.exp        |   4 +-
 gdb/testsuite/gdb.btrace/static_functions.exp |  62 +++++++++++++
 5 files changed, 135 insertions(+), 70 deletions(-)
 create mode 100644 gdb/testsuite/gdb.btrace/static_functions.exp

-- 
1.8.3.1


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