presto-main/src/main/java/io/prestosql/execution/QueryStateMachine.java/QueryStateMachine/getPeakUserMemoryInBytes
class QueryStateMachine:    public long getPeakUserMemoryInBytes()
    {
        return peakUserMemory.get();
    }