diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-12 21:31:04 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-12 21:31:04 -0500 |
commit | 59e994b7e98fe80febdb4b613fc12db484f88977 (patch) | |
tree | 1a6856aa169f0e75d8ba3e3c5f96c7d7b9750f84 /cpu.h | |
parent | d092a070a76d943d708497bd75c5097b7c622524 (diff) |
parse-events: Replace the event list with a sorted array
Replace the event list in the pevent structure with a sorted array
of event_format pointers. Now the search for an event can be done
with a binary search. With the size of events growing, this makes
a big difference.
Running trace-cmd report on a 300,000 event data file and outputing
into /dev/null, went from:
real 0m5.639s
user 0m5.464s
sys 0m0.174s
to
real 0m1.810s
user 0m1.672s
sys 0m0.138s
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'cpu.h')
0 files changed, 0 insertions, 0 deletions