Unverified Commit 7f26f304 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #1410 from hypothesis/jenkins-chrome-debugging

Enable Chrome tracing during startup
parents 1edd43d9 bfc8d05c
...@@ -28,6 +28,16 @@ if (process.env.TRAVIS || process.env.RUNNING_IN_DOCKER) { ...@@ -28,6 +28,16 @@ if (process.env.TRAVIS || process.env.RUNNING_IN_DOCKER) {
__dirname + '/../', __dirname + '/../',
'chrome_debug.log' 'chrome_debug.log'
); );
// Enable even more debug logging from Chrome to help track down build
// failures in Jenkins. This generates a large (~40MB+) JSON file detailing
// events that happen during browser startup.
//
// See https://www.chromium.org/developers/how-tos/trace-event-profiling-tool/recording-tracing-runs#TOC-Capturing-chrome-desktop-startup
const traceFile = path.resolve(__dirname + '/../', 'chrome_trace.json');
chromeFlags.push('--trace-startup');
chromeFlags.push('--trace-startup-duration=7');
chromeFlags.push(`--trace-startup-file=${traceFile}`);
} }
if (process.env.RUNNING_IN_DOCKER) { if (process.env.RUNNING_IN_DOCKER) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment