Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/win_pgo_profiler.py

Issue 294053016: Fix a bug in the Win PGO profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/win_pgo_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/win_pgo_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/win_pgo_profiler.py
index 693191504723dc48a4aeec6fcad9a11633bd2a1a..05e8c5f1c385a9bc3db1c5c6eed494d4f1d5d143 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/win_pgo_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/win_pgo_profiler.py
@@ -47,7 +47,7 @@ class WinPGOProfiler(profiler.Profiler):
pgc_files = glob.glob(os.path.join(self._browser_dir,
'%s!*.pgc' % dll_name))
for pgc_file in pgc_files:
- max(max_index,
+ max_index = max(max_index,
int(os.path.splitext(os.path.split(pgc_file)[1])[0].split('!')[1]))
return max_index + 1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698