diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 17:03:59 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 17:03:59 +0000 |
commit | 70b0dd640dd38d2990bdc80b16a78fdba226d374 (patch) | |
tree | 731d203d06fd7853910affa410d10ff155ec6cd4 /tools | |
parent | 349bdc4dc054ec42bf0aef7dbd8ab232d20ad1d9 (diff) | |
download | chromium_src-70b0dd640dd38d2990bdc80b16a78fdba226d374.zip chromium_src-70b0dd640dd38d2990bdc80b16a78fdba226d374.tar.gz chromium_src-70b0dd640dd38d2990bdc80b16a78fdba226d374.tar.bz2 |
Make sure to clean the traces before tracing again.
In strace specifically, the log parser can get confused if the traces are not
properly cleaned up first, as the log parser reads all the <trace>.<pid> files
and do not know which ones are stale and which ones are valid.
R=cmp@chromium.org
NOTRY=true
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10777010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/isolate/isolate.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/isolate/isolate.py b/tools/isolate/isolate.py index 7f71f13..988086d 100755 --- a/tools/isolate/isolate.py +++ b/tools/isolate/isolate.py @@ -876,6 +876,7 @@ def CMDtrace(args): logging.info('Running %s, cwd=%s' % (cmd, cwd)) api = trace_inputs.get_api() logfile = complete_state.result_file + '.log' + api.clean_trace(logfile) try: with api.get_tracer(logfile) as tracer: result, _ = tracer.trace( |