presto-hive/src/main/java/io/prestosql/plugin/hive/util/SortBuffer.java/SortBuffer/getRetainedBytes
class SortBuffer:    public long getRetainedBytes()
    {
        return INSTANCE_SIZE + usedMemoryBytes;
    }