diff options
author | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 13:09:40 +0000 |
---|---|---|
committer | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 13:09:40 +0000 |
commit | 291890fe382d85cd43041a6da7cb634f39b0f36a (patch) | |
tree | 9792a68c0c722986e0486f41fccf7ec6f4b33b40 | |
parent | bbc51c914a88870001bfc8a1483726dbf13cc8b7 (diff) | |
download | chromium_src-291890fe382d85cd43041a6da7cb634f39b0f36a.zip chromium_src-291890fe382d85cd43041a6da7cb634f39b0f36a.tar.gz chromium_src-291890fe382d85cd43041a6da7cb634f39b0f36a.tar.bz2 |
Simplify drmemory_analyze and remove some unneeded stuff
TBR=bruening
Review URL: http://codereview.chromium.org/8633013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111140 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | tools/valgrind/drmemory_analyze.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/tools/valgrind/drmemory_analyze.py b/tools/valgrind/drmemory_analyze.py index 5f5e235..a7e9d5e 100755 --- a/tools/valgrind/drmemory_analyze.py +++ b/tools/valgrind/drmemory_analyze.py @@ -42,7 +42,6 @@ class DrMemoryAnalyze: def ReadLine(self): self.line_ = self.cur_fd_.readline() - self.stack_trace_line_ = None def ReadSection(self): result = [self.line_] @@ -58,21 +57,12 @@ class DrMemoryAnalyze: while True: self.ReadLine() if (self.line_ == ''): break - if re.search("FINAL SUMMARY:", self.line_): - # No more reports since this point. - break - tmp = [] + match = re.search("^Error #[0-9]+: (.*)", self.line_) if match: self.line_ = match.groups()[0].strip() + "\n" - tmp.extend(self.ReadSection()) + tmp = self.ReadSection() self.reports.append(tmp) - elif self.line_.startswith("ASSERT FAILURE"): - self.reports.append(self.line_.strip()) - - while True: - self.ReadLine(); - if (self.line_ == ''): break if re.search("SUPPRESSIONS USED:", self.line_): self.ReadLine() @@ -82,11 +72,6 @@ class DrMemoryAnalyze: line).groups() self.used_suppressions.append("%7s %s" % (count, name)) self.ReadLine() - break - - while True: - self.ReadLine(); - if (self.line_ == ''): break if self.line_.startswith("ASSERT FAILURE"): self.reports.append(self.line_.strip()) |