aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2024-07-21 09:23:46 +0200
committerNeeraj Upadhyay <[email protected]>2024-08-14 17:06:01 +0530
commit4e39bb49c2de445848c2668d7f9fec6ba70724ae (patch)
tree582d937d5b73189b8a576eae7bfc813fcab472ef /tools/perf/util/scripting-engines/trace-event-python.c
parent3e49aea71d5bac93b892f954d14bc8070e4cc651 (diff)
refscale: Optimize process_durations()
process_durations() is not a hot path, but there is no good reason to iterate over and over the data already in 'buf'. Using a seq_buf saves some useless strcat() and the need of a temp buffer. Data is written directly at the correct place. Signed-off-by: Christophe JAILLET <[email protected]> Tested-by: "Paul E. McKenney" <[email protected]> Reviewed-by: Davidlohr Bueso <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions