diff options
author | 2018-06-11 13:30:38 -0700 | |
---|---|---|
committer | 2018-06-11 13:32:59 -0700 | |
commit | 4915e823976adf6738ec1c89abda8ed8f1f5e368 (patch) | |
tree | b9faefc694537c68e06b00e560ea19f4b89c7326 /src/main/java/com/google/devtools/build/lib/runtime | |
parent | c7eef96da80ace358e1d19c7b090765747281cfd (diff) |
Automated rollback of commit 15b8c259db111012b4642287172cb4d1d82151f3.
*** Reason for rollback ***
Breaks internal performance tests.
PiperOrigin-RevId: 200103033
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java index a7b1a96a0c..dcdca11575 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java @@ -86,6 +86,7 @@ import com.google.devtools.common.options.OptionsParser; import com.google.devtools.common.options.OptionsParsingException; import com.google.devtools.common.options.OptionsProvider; import com.google.devtools.common.options.TriState; +import java.io.BufferedOutputStream; import java.io.File; import java.io.IOException; import java.io.OutputStream; @@ -276,7 +277,7 @@ public final class BlazeRuntime { Path profilePath = env.getWorkspace().getRelative(options.profilePath); recordFullProfilerData = options.recordFullProfilerData; - out = profilePath.getOutputStream(); + out = new BufferedOutputStream(profilePath.getOutputStream(), 1024 * 1024); env.getReporter().handle(Event.info("Writing profile data to '" + profilePath + "'")); profiledTasks = ProfiledTaskKinds.ALL; } else if (options.alwaysProfileSlowOperations) { @@ -288,13 +289,8 @@ public final class BlazeRuntime { Profiler.instance().start( profiledTasks, out, - Profiler.Format.BINARY_BAZEL_FORMAT, - String.format( - "%s profile for %s at %s, build ID: %s", - getProductName(), - env.getOutputBase(), - new Date(), - buildID), + getProductName() + " profile for " + env.getOutputBase() + " at " + new Date() + + ", build ID: " + buildID, recordFullProfilerData, clock, execStartTimeNanos); |