diff options
author | Joel Fernandes <joelaf@google.com> | 2017-06-29 14:28:07 -0700 |
---|---|---|
committer | Joel Fernandes <joelaf@google.com> | 2017-06-29 14:28:07 -0700 |
commit | b5d85cef9db8fcb72fe152d37ad098363141b008 (patch) | |
tree | 3bbc773b10a08b413c6866c998afa53c077db112 | |
parent | fd162b6790ae666d00624faa339e402a11e16e1d (diff) | |
download | trappy-b5d85cef9db8fcb72fe152d37ad098363141b008.tar.gz |
Revert "trappy: Speed up trappy parsing by 20% by skipping regex sub"
This reverts commit c9243e261fb37be1b1149ae6d111e18745b75959.
-rw-r--r-- | trappy/ftrace.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trappy/ftrace.py b/trappy/ftrace.py index 07e01c7..4bd0ae0 100644 --- a/trappy/ftrace.py +++ b/trappy/ftrace.py @@ -215,8 +215,7 @@ subclassed by FTrace (for parsing FTrace coming from trace-cmd) and SysTrace.""" return # Remove empty arrays from the trace - if "={}" in data_str: - data_str = re.sub(r"[A-Za-z0-9_]+=\{\} ", r"", data_str) + data_str = re.sub(r"[A-Za-z0-9_]+=\{\} ", r"", data_str) trace_class.append_data(timestamp, comm, pid, cpu, self.lines, data_str) self.lines += 1 |