diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-07-21 10:23:46 +0300 |
---|---|---|
committer | Neeraj Upadhyay <neeraj.upadhyay@kernel.org> | 2024-08-14 14:36:01 +0300 |
commit | 4e39bb49c2de445848c2668d7f9fec6ba70724ae (patch) | |
tree | 582d937d5b73189b8a576eae7bfc813fcab472ef /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3e49aea71d5bac93b892f954d14bc8070e4cc651 (diff) | |
download | linux-4e39bb49c2de445848c2668d7f9fec6ba70724ae.tar.xz |
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 <christophe.jaillet@wanadoo.fr>
Tested-by: "Paul E. McKenney" <paulmck@kernel.org>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions