wjones127 opened a new pull request, #33731:
URL: https://github.com/apache/arrow/pull/33731
### Rationale for this change
We would like to track memory usage in many of our benchmarks. In order to
isolate memory metrics per benchmark, we need to also add a way to reset the
metrics between each benchmark.
### What changes are included in this PR?
* `MemoryPool` now tracks both `num_allocations` and
`total_bytes_allocated`.
* `MemoryPool` exposes a method `ResetStatistics()` that resets all memory
statistics, which is useful for isolating memory changes in a certain region of
code.
* There is now a macro `ARROW_BENCHMARK_TRACK_MEMORY` that can be placed in
a benchmark file to add memory statistics to the google benchmark JSON output.
### Are these changes tested?
* [ ] Add tests
### Are there any user-facing changes?
* [ ] Validate performance impact of new metrics in memory pools.
No breaking changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]