Use case
To distinguish between queries which have higher peak memory usage but for short period of time and queries which use less memory, but for much longer period of time.
Describe the solution you'd like
Profile event, which will count amount of microsecond*bytes (or megabytes, whatever) consumed by query
Additional context