use of com.facebook.buck.rules.BuildRuleDurationTracker in project buck by facebook.
the class ChromeTraceBuildListenerTest method setUp.
@Before
public void setUp() throws IOException {
invocationInfo = InvocationInfo.builder().setTimestampMillis(TimeUnit.NANOSECONDS.toMillis(TIMESTAMP_NANOS)).setBuckLogDir(tmpDir.getRoot().toPath().resolve("buck-out/log")).setBuildId(new BuildId("BUILD_ID")).setSubCommand("no_sub_command").setIsDaemon(false).setSuperConsoleEnabled(false).build();
durationTracker = new BuildRuleDurationTracker();
}
use of com.facebook.buck.rules.BuildRuleDurationTracker in project buck by facebook.
the class MachineReadableLogJsonViewTest method setUp.
@Before
public void setUp() {
Clock clock = new DefaultClock();
timestamp = clock.currentTimeMillis();
nanoTime = clock.nanoTime();
// Not using real value as not all JVMs will support thread user time.
threadUserNanoTime = new Random().nextLong();
threadId = 0;
buildId = new BuildId("Test");
durationTracker = new BuildRuleDurationTracker();
}
use of com.facebook.buck.rules.BuildRuleDurationTracker in project buck by facebook.
the class EventSerializationTest method setUp.
@Before
public void setUp() {
Clock clock = new DefaultClock();
timestamp = clock.currentTimeMillis();
nanoTime = clock.nanoTime();
// Not using real value as not all JVMs will support thread user time.
threadUserNanoTime = new Random().nextLong();
threadId = 0;
buildId = new BuildId("Test");
durationTracker = new BuildRuleDurationTracker();
EventKey.setSequenceValueForTest(4242L);
}
Aggregations