Bug 1229731 - Run Firefox a first time to fill its profile before doing the actual profiling run for PGO. r=ted

This commit is contained in:
Mike Hommey 2015-12-30 15:59:40 +09:00
parent 8ad221e9e1
commit a8f8fee46a

View File

@ -63,6 +63,14 @@ if __name__ == '__main__':
if os.path.exists(vc12dir):
env["PATH"] = vc12dir + ";" + env["PATH"]
# Run Firefox a first time to initialize its profile
runner = FirefoxRunner(profile=profile,
binary=build.get_binary_path(where="staged-package"),
cmdargs=['javascript:Quitter.quit()'],
env=env)
runner.start()
runner.wait()
jarlog = os.getenv("JARLOG_FILE")
if jarlog:
env["MOZ_JAR_LOG_FILE"] = os.path.abspath(jarlog)