Fix a bug in the Win PGO profiler.

R=tonyg@chromium.org

BUG=

Review URL: https://codereview.chromium.org/294053016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272665 0039d316-1c4b-4281-b951-d872f2087c98
parent db07ee38
...@@ -47,7 +47,7 @@ class WinPGOProfiler(profiler.Profiler): ...@@ -47,7 +47,7 @@ class WinPGOProfiler(profiler.Profiler):
pgc_files = glob.glob(os.path.join(self._browser_dir, pgc_files = glob.glob(os.path.join(self._browser_dir,
'%s!*.pgc' % dll_name)) '%s!*.pgc' % dll_name))
for pgc_file in pgc_files: 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])) int(os.path.splitext(os.path.split(pgc_file)[1])[0].split('!')[1]))
return max_index + 1 return max_index + 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment