Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,14 @@ a report on the number of allocations, bytes used, etc.
This data will then be reported alongside other performance data, currently
only when using JSON output.

The memory manager does not collect allocations by itself. It is meant to
bridge data from an allocator hook or profiler that already tracks memory
activity. Reset that collector in `Start()`, then copy its final counters into
`MemoryManager::Result` in `Stop()`.

Use [Custom Counters](#custom-counters) instead when memory stats need to be
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no don't do this. we have the memory manager for exactly this reason. this would encourage users to run memory profiling in their performance sensitive micro benchmarks.

i don't think this PR is very useful.

reported in console or CSV output, or when you need allocator-specific columns.

<a name="profiling" />

## Profiling
Expand Down