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