aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <[email protected]>2020-07-02 14:53:51 -0400
committerArnaldo Carvalho de Melo <[email protected]>2020-07-06 08:59:58 -0300
commite7a90882b05b2669df7a0aa2e87e6283c7edff33 (patch)
tree0012057bddef87f67edf5f1fa795206a2810ae9a /tools/perf/scripts/python/sched-migration.py
parent487ae1f4a17c197ab77b3ea593049a11187ec9a1 (diff)
tools lib traceevent: Optimize pretty_print() function
Each time the pretty_print() function is called to print an event, the event's format string is parsed. As this format string does not change, this parsing can be done only once - when the event struct is initialized. Link: https://lore.kernel.org/linux-trace-devel/[email protected] Link: http://lore.kernel.org/linux-trace-devel/[email protected] Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: [email protected] Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions