diff options
author | ccalvarin <ccalvarin@google.com> | 2018-07-27 12:46:46 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-27 12:48:22 -0700 |
commit | c9efd06dc6cfef400b288becf96aed1f5ba228b2 (patch) | |
tree | 076142a5a53677d2a3a7c22ffbee90a95f7becca /src/test/java/com/google/devtools/build/lib/profiler/AutoProfilerBenchmark.java | |
parent | 0ae0be980ebdd0e47bdc72b122d5074d4c3d0cb5 (diff) |
Automated rollback of commit 7e87730de985b7099b9b683571d58efdaab70890.
*** Reason for rollback ***
Go back to the default constructor - instead of requiring everywhere to know the correct hash function, we'll have the default rely on global state. It will make transition easier, even if it makes the origin of the hash less obvious.
*** Original change description ***
Remove default MD5 in most of Bazel's virtual filesystems.
This forces the ex-default to be explicit in a lot of tests, but I'd rather that than have the risk of implicit md5-use in production code.
To keep this CL smaller, do not remove the default from UnixFS quite yet.
RELNOTES: None.
PiperOrigin-RevId: 206358838
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.java | 18 |
1 files changed, 8 insertions, 10 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 1022f38d92..044ae8c0d4 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 @@ -17,7 +17,6 @@ import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.devtools.build.lib.clock.BlazeClock; import com.google.devtools.build.lib.profiler.Profiler.ProfiledTaskKinds; -import com.google.devtools.build.lib.vfs.DigestHashFunction; import com.google.devtools.build.lib.vfs.inmemoryfs.InMemoryFileSystem; /** @@ -28,15 +27,14 @@ public class AutoProfilerBenchmark { @BeforeExperiment void startProfiler() throws Exception { - Profiler.instance() - .start( - ProfiledTaskKinds.ALL, - new InMemoryFileSystem(DigestHashFunction.MD5).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()); } @BeforeExperiment |