Skip to content

Track memory usage for each individual operator #899

@alamb

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
When reviewing a plan, it would be nice to know the amount of memory each individual ExecutionPlan allocated during its execution.

Describe the solution you'd like
Add two new metrics to all operators:

  1. Total memory allocated when it is read
  2. Peak memory allocated (maximum value of memory allocated)

"Allocated" should include both memory in created record batches as well as any internal memory (as described in #898 -- hopefully this code would just use the same underlying allocation measurement)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Probably could follow the same model as #866 (baseline metrics for all operators) once that is implemented

#898 is for tracking overall memory allocations across all operators in a plan. This issue is for tracking the allocations for each individual operator

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions