File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/test/java/com/google/devtools/build/lib/runtime Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2424import com .google .devtools .build .lib .analysis .ServerDirectories ;
2525import com .google .devtools .build .lib .analysis .config .CoreOptions ;
2626import com .google .devtools .build .lib .analysis .test .TestConfiguration ;
27+ import com .google .devtools .build .lib .profiler .Profiler ;
28+ import com .google .devtools .build .lib .profiler .TraceProfilerServiceImpl ;
2729import com .google .devtools .build .lib .server .FailureDetails ;
2830import com .google .devtools .build .lib .server .FailureDetails .Crash ;
2931import com .google .devtools .build .lib .server .FailureDetails .FailureDetail ;
@@ -379,6 +381,7 @@ void assertOnSameThreadAs(CommandState other) {
379381 @ Before
380382 public void setUp () throws Exception {
381383 executor = Executors .newSingleThreadExecutor ();
384+ Profiler .setTraceProfilerServiceForTesting (new TraceProfilerServiceImpl ());
382385 Scratch scratch = new Scratch ();
383386 isTestShuttingDown = new AtomicBoolean (false );
384387 String productName = TestConstants .PRODUCT_NAME ;
You can’t perform that action at this time.
0 commit comments