google/benchmark

Memory reporting capabilities are unclear and undocumented.

Open

#1,217 opened on Aug 27, 2021

View on GitHub
 (11 comments) (12 reactions) (1 assignee)C++ (7,968 stars) (1,539 forks)batch import
enhancementgood first issue

Description

I am currently using google/benchmark to benchmark https://github.com/protocolbuffers/upb. I would very much like for those benchmarks to also include memory usage.

Does this project support memory benchmarking? The user guide does not mention memory usage benchmarking at all. However I notice that the header has a RegisterMemoryManager() function, and there is a unit test verifying this functionality.

From running the test, it appears that the memory usage data is surfaced to JSON, but not CSV or console reports. Is this an oversight or intentional? Ideally this data would be shown on CSV and console reports also.

Contributor guide

Memory reporting capabilities are unclear and undocumented. · google/benchmark#1217 | Good First Issue