From 87182ba977a3f9890f8d6eb0b3717dde215f63d7 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 19 Sep 2021 22:49:37 -0700 Subject: [PATCH] bin/perf-annotate-jit.py: Update to Python 3. Signed-off-by: Vinson Lee Reviewed-by: Eric Engestrom Part-of: --- bin/perf-annotate-jit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/perf-annotate-jit.py b/bin/perf-annotate-jit.py index 28bbc59b600..6eb8f528369 100755 --- a/bin/perf-annotate-jit.py +++ b/bin/perf-annotate-jit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2012 VMware Inc # Copyright 2008-2009 Jose Fonseca @@ -165,7 +165,7 @@ class PerfParser(LineParser): sys.stdout.write('%6u' % (sample)) total_samples += sample sys.stdout.write('%6u: %s\n' % (address, instr)) - print 'total:', total_samples + print('total:', total_samples) assert len(samples) == 0 sys.exit(0) @@ -221,7 +221,7 @@ class PerfParser(LineParser): start_address = lookupMap(module, function_name) address -= start_address - #print function_name, module, address + #print(function_name, module, address) samples[address] = samples.get(address, 0) + 1