diff options
Diffstat (limited to 'tools/perf/python/twatch.py')
-rwxr-xr-x | tools/perf/python/twatch.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/python/twatch.py b/tools/perf/python/twatch.py index c235c22b107a..0a29c5c3079f 100755 --- a/tools/perf/python/twatch.py +++ b/tools/perf/python/twatch.py | |||
@@ -42,10 +42,10 @@ def main(context_switch = 0, thread = -1): | |||
42 | event = evlist.read_on_cpu(cpu) | 42 | event = evlist.read_on_cpu(cpu) |
43 | if not event: | 43 | if not event: |
44 | continue | 44 | continue |
45 | print "cpu: %2d, pid: %4d, tid: %4d" % (event.sample_cpu, | 45 | print("cpu: {0}, pid: {1}, tid: {2} {3}".format(event.sample_cpu, |
46 | event.sample_pid, | 46 | event.sample_pid, |
47 | event.sample_tid), | 47 | event.sample_tid, |
48 | print event | 48 | event)) |
49 | 49 | ||
50 | if __name__ == '__main__': | 50 | if __name__ == '__main__': |
51 | """ | 51 | """ |