public class PerformanceTestUtils
extends java.lang.Object
| Constructor and Description | 
|---|
| PerformanceTestUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static long | getProcessCpuTime() | 
| static java.util.concurrent.Future<?> | sampleProcessCpuTime(Duration period,
                    java.lang.String loggingContext)Creates a background thread that will log.info the CPU fraction usage repeatedly, sampling at the given period. | 
public static long getProcessCpuTime()
public static java.util.concurrent.Future<?> sampleProcessCpuTime(Duration period, java.lang.String loggingContext)
future.cancel(true), otherwise it will keep
 logging until the JVM exits.