tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

hooks_perfstats.py (580B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 from mozperftest.test.browsertime import add_options
      5 from mozperftest.test.browsertime.runner import NodeException
      6 
      7 common_options = [("firefox.perfStats", "true")]
      8 
      9 
     10 def on_exception(env, layer, exc):
     11    if not isinstance(exc, NodeException):
     12        raise exc
     13    return True
     14 
     15 
     16 def logcat_processor():
     17    pass
     18 
     19 
     20 def before_runs(env, **kw):
     21    add_options(env, common_options)