blob: 37e7ee13bae4fc6c1908c6bac778ec13110fca83 [file] [log] [blame]
#!/usr/bin/env python
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A simple trampoline to in the src/ directory. generates a synthetic user profile.
import optparse
import os
import sys
from slave import build_directory
from common import chromium_utils
def main():
parser = optparse.OptionParser()
parser.add_option('--build-dir', help='ignored')
parser.add_option('--target', help='Release or Debug')
options, args = parser.parse_args()
output_dir = os.path.join(build_directory.GetBuildOutputDirectory(),,
cmd = [
os.path.join('src', 'tools', 'perf', 'generate_profile'),
'--browser=' +,
'--profile-type-to-generate=' + options.profile_type_to_generate,
'--output-dir=' + output_dir,
] + args
return chromium_utils.RunCommand(cmd)
if '__main__' == __name__: