diff options
author | Yunlian Jiang <yunlian@google.com> | 2013-04-23 15:05:05 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-06 13:52:33 -0700 |
commit | 04dc5dc8547dbfbe524cf35ac39537346ad749bb (patch) | |
tree | fdb51e46da30efec2fbf310670b7ad5f5ce8be43 /crosperf/label.py | |
parent | 9fc991900056e20bb940eed243dad0c0516d497b (diff) | |
download | toolchain-utils-04dc5dc8547dbfbe524cf35ac39537346ad749bb.tar.gz |
Adding support of telemetry to crosperf
BUG=None
TEST=run crosperf with pyauto/telemetry test with/without cache.
all pass.
Change-Id: If07ac020a9107a79d5780a58fd6dcc924d07f07f
Reviewed-on: https://gerrit-int.chromium.org/36594
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@google.com>
Tested-by: Yunlian Jiang <yunlian@google.com>
Reviewed-on: https://gerrit-int.chromium.org/39241
Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'crosperf/label.py')
-rw-r--r-- | crosperf/label.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crosperf/label.py b/crosperf/label.py index be7a868e..e8193529 100644 --- a/crosperf/label.py +++ b/crosperf/label.py @@ -1,6 +1,8 @@ #!/usr/bin/python -# Copyright 2011 Google Inc. All Rights Reserved. +# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. """The label of benchamrks.""" @@ -10,7 +12,7 @@ from utils.file_utils import FileUtils class Label(object): def __init__(self, name, chromeos_image, chromeos_root, board, remote, - image_args, image_md5sum, cache_dir): + image_args, image_md5sum, cache_dir, chrome_src=None): # Expand ~ chromeos_root = os.path.expanduser(chromeos_root) chromeos_image = os.path.expanduser(chromeos_image) @@ -36,6 +38,11 @@ class Label(object): % (name, chromeos_root)) self.chromeos_root = chromeos_root + if not chrome_src: + self.chrome_src = os.path.join(self.chromeos_root, + "chroot/var/cache/chromeos-chrome/chrome-src-internal/src") + else: + chromeos_root = FileUtils().CanonicalizeChromeOSRoot(chrome_src) class MockLabel(object): |