@Override public long getThreadId() { // We add this constant offset to make sure it doesn't overlap with the system threadIds thus // looking nicer in the Chrome Tracing viewer. return node.getThreadId() + THREAD_ID_OFFSET; }
public BuildTarget getTarget() { return node.getTarget(); }
private SimulateEvent(BuildSimulator.SimulationNode node, long simulationMillis) { super(EventKey.slowValueKey(node.getTarget())); this.node = node; this.simulationMillis = simulationMillis; }