presto-main/src/main/java/io/prestosql/execution/buffer/ArbitraryOutputBuffer.java/MasterBuffer/getBufferedPages
class MasterBuffer:        public int getBufferedPages()
        {
            return bufferedPages.get();
        }