Home | History | Annotate | Download | only in perf
      1 #!/usr/bin/env python
      2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 import os
      6 import sys
      7 
      8 # Add telemetry to sys.path so that it can be imported below
      9 # Relative path from this file is ../telemetry
     10 _perf_dir = os.path.dirname(__file__)
     11 _telemetry_path = os.path.join(_perf_dir, os.pardir, 'telemetry')
     12 sys.path.append(_telemetry_path)
     13 
     14 from telemetry.page import record_wpr
     15 
     16 if __name__ == '__main__':
     17   sys.exit(record_wpr.Main(_perf_dir))
     18