Add a Json writer to produce a chrome://tracing file.