GitHub user adeneche opened a pull request: https://github.com/apache/drill/pull/280
DRILL-3543: Add stats for external sort to a query profile added the following metrics to ExternalSortRecordBatch: metric | description -------- | -------------- SPILL_COUNT | number of times operator spilled to disk PEAK_SIZE_IN_MEMORY | peak value for totalSizeInMemory (1) PEAK_BATCHES_IN_MEMORY | maximum number of batches kept in memory (1) how much memory sort estimated it's using so far. See [DRILL-4121](https://issues.apache.org/jira/browse/DRILL-4121) for a case where this won't be enough You can merge this pull request into a Git repository by running: $ git pull https://github.com/adeneche/incubator-drill DRILL-3543 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/280.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #280 ---- commit eb5108d529c7bdf4fb56172b64dabf9b00c815ec Author: Hakim <hakim@adeneche.local> Date: 2015-11-23T20:36:30Z DRILL-3543: Add stats for external sort to a query profile ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---