Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1546)

Side by Side Diff: mojo/tools/mopy/paths.py

Issue 724243002: Add a startup benchmark and rudimentary scripts for running benchmarks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« benchmarks/startup/run.py ('K') | « mojo/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 6
7 class Paths(object): 7 class Paths(object):
8 """Provides commonly used paths""" 8 """Provides commonly used paths"""
9 9
10 def __init__(self, build_directory=None): 10 def __init__(self, build_directory=None):
11 """Specify a build_directory to generate paths to binary artifacts""" 11 """Specify a build_directory to generate paths to binary artifacts"""
12 self.src_root = os.path.abspath(os.path.join(__file__, 12 self.src_root = os.path.abspath(os.path.join(__file__,
13 os.pardir, os.pardir, os.pardir, os.pardir)) 13 os.pardir, os.pardir, os.pardir, os.pardir))
14 self.mojo_dir = os.path.join(self.src_root, "mojo") 14 self.mojo_dir = os.path.join(self.src_root, "mojo")
15 if build_directory: 15 if build_directory:
16 self.mojo_shell_path = os.path.join(self.src_root, build_directory, 16 self.build_dir = os.path.join(self.src_root, build_directory)
17 "mojo_shell") 17 self.mojo_shell_path = os.path.join(self.build_dir, "mojo_shell")
18 else: 18 else:
19 self.build_dir = None
19 self.mojo_shell_path = None 20 self.mojo_shell_path = None
OLDNEW
« benchmarks/startup/run.py ('K') | « mojo/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698