public class PerfStatsTracking extends com.google.common.util.concurrent.AbstractScheduledService implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
PerfStatsTracking.MemoryPerfStatsEvent
Performance event that tracks current memory usage of Buck
|
static class |
PerfStatsTracking.PerfStatsEvent |
Constructor and Description |
---|
PerfStatsTracking(BuckEventBus eventBus,
InvocationInfo invocationInfo) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
probeMemory() |
protected void |
runOneIteration() |
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
scheduler() |
public PerfStatsTracking(BuckEventBus eventBus, InvocationInfo invocationInfo)
public void probeMemory()
protected void runOneIteration() throws Exception
runOneIteration
in class com.google.common.util.concurrent.AbstractScheduledService
Exception
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()
scheduler
in class com.google.common.util.concurrent.AbstractScheduledService
public void close()
close
in interface AutoCloseable