presto-main/src/main/java/io/prestosql/operator/TableWriterOperator.java/TableWriterOperator/updateMemoryUsage
class TableWriterOperator:    private void updateMemoryUsage()
    {
        long pageSinkMemoryUsage = pageSink.getSystemMemoryUsage();
        pageSinkMemoryContext.setBytes(pageSinkMemoryUsage);
        pageSinkPeakMemoryUsage.accumulateAndGet(pageSinkMemoryUsage, Math::max);
    }