presto-main/src/main/java/io/prestosql/operator/DriverContext.java/DriverContext/getMemoryUsage
class DriverContext:    public long getMemoryUsage()
    {
        return driverMemoryContext.getUserMemory();
    }