Chromium Code Reviews

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

Issue 739623005: [Telemetry] Resolve errors due to new pylint checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready to land Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
index 903d63d73e0bc04b826f5c52e0f4087e0e700a96..5f3211026a88087f8e6e263a6ae6bafbff611c5d 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
@@ -16,31 +16,31 @@ from telemetry.timeline import model
# Parses one line of strace output, for example:
# 6052 1311456063.159722 read(8, "\1\0\0\0\0\0\0\0", 8) = 8 <0.000022>
_STRACE_LINE_RE = re.compile(
- '^(?P<tid>\d+)\s+'
- '(?P<ts>\d+)'
- '(?P<micro>.\d+)\s+'
- '(?P<func>.*?)'
- '[(](?P<args>.*?)[)]\s+=\s+'
- '(?P<ret>.*?)\s+'
- '<(?P<dur>[\d.]+)>$')
+ r'^(?P<tid>\d+)\s+'
+ r'(?P<ts>\d+)'
+ r'(?P<micro>.\d+)\s+'
+ r'(?P<func>.*?)'
+ r'[(](?P<args>.*?)[)]\s+=\s+'
+ r'(?P<ret>.*?)\s+'
+ r'<(?P<dur>[\d.]+)>$')
_UNFINISHED_LINE_RE = re.compile(
- '^(?P<tid>\d+)\s+'
- '(?P<line>.*?)'
- '<unfinished ...>$')
+ r'^(?P<tid>\d+)\s+'
+ r'(?P<line>.*?)'
+ r'<unfinished ...>$')
_RESUMED_LINE_RE = re.compile(
- '^(?P<tid>\d+)\s+'
- '(?P<ts>\d+)'
- '(?P<micro>.\d+)\s+'
- '<[.][.][.]\s(?P<func>.*?)\sresumed>'
- '(?P<line>.*?)$')
+ r'^(?P<tid>\d+)\s+'
+ r'(?P<ts>\d+)'
+ r'(?P<micro>.\d+)\s+'
+ r'<[.][.][.]\s(?P<func>.*?)\sresumed>'
+ r'(?P<line>.*?)$')
_KILLED_LINE_RE = re.compile(
- '^(?P<tid>\d+)\s+'
- '(?P<ts>\d+)'
- '(?P<micro>.\d+)\s+'
- '[+][+][+] killed by SIGKILL [+][+][+]$')
+ r'^(?P<tid>\d+)\s+'
+ r'(?P<ts>\d+)'
+ r'(?P<micro>.\d+)\s+'
+ r'[+][+][+] killed by SIGKILL [+][+][+]$')
def _StraceToChromeTrace(pid, infile):

Powered by Google App Engine