aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java
diff options
context:
space:
mode:
authorGravatar twerth <twerth@google.com>2018-08-14 07:53:40 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-08-14 07:55:28 -0700
commitd12db5975687a87b6d36543747234200d0cdc3b5 (patch)
treeab6500d9a06422d6fdbfe2cf6831ebf6a48531d0 /src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java
parenta05e6ccdba85f5e827245aa581accd2867e40851 (diff)
Add experimental option to do add local cpu usage values to the JSON profile.
RELNOTES: None PiperOrigin-RevId: 208646319
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java b/src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java
index 044ae8c0d4..448a21baca 100644
--- a/src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java
+++ b/src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java
@@ -27,14 +27,16 @@ public class AutoProfilerBenchmark {
@BeforeExperiment
void startProfiler() throws Exception {
- Profiler.instance().start(
- ProfiledTaskKinds.ALL,
- new InMemoryFileSystem().getPath("/out.dat").getOutputStream(),
- Profiler.Format.BINARY_BAZEL_FORMAT,
- "benchmark",
- false,
- BlazeClock.instance(),
- BlazeClock.instance().nanoTime());
+ Profiler.instance()
+ .start(
+ ProfiledTaskKinds.ALL,
+ new InMemoryFileSystem().getPath("/out.dat").getOutputStream(),
+ Profiler.Format.BINARY_BAZEL_FORMAT,
+ "benchmark",
+ false,
+ BlazeClock.instance(),
+ BlazeClock.instance().nanoTime(),
+ /* enabledCpuUsageProfiling= */ false);
}
@BeforeExperiment