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

Unified Diff: tools/telemetry/telemetry/core/chrome/win_platform_backend.py

Issue 14328005: [Telemetry] Fix page_cycler benchmark on machines in positive timezones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/chrome/win_platform_backend.py
diff --git a/tools/telemetry/telemetry/core/chrome/win_platform_backend.py b/tools/telemetry/telemetry/core/chrome/win_platform_backend.py
index edc873cd838dc59b68da603214a4e34c05aaf102..f3d50aedbb64b5cebe44b73e4e8d4a1d88ae5635 100644
--- a/tools/telemetry/telemetry/core/chrome/win_platform_backend.py
+++ b/tools/telemetry/telemetry/core/chrome/win_platform_backend.py
@@ -4,6 +4,7 @@
import collections
import ctypes
+import re
import subprocess
try:
import pywintypes # pylint: disable=F0401
@@ -113,7 +114,7 @@ class WinPlatformBackend(platform_backend.PlatformBackend):
_, creation, curr_ppid, curr_pid = creation_ppid_pid.split(',')
ppid_map[int(curr_ppid)].append(int(curr_pid))
if creation:
- creation_map[int(curr_pid)] = float(creation.split('-')[0])
+ creation_map[int(curr_pid)] = float(re.split('[+-]', creation)[0])
def _InnerGetChildPids(pid):
if not pid or pid not in ppid_map:
« 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