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