Expand description
APIs for memory profiling.
Structs§
- Memory
Report - A simple memory report
- Memory
Report Result - The results produced by the memory reporter.
- Process
Reports - A set of reports belonging to a process.
- Profiler
Chan - Front-end representation of the profiler used to communicate with the profiler.
- Profiler
Registration - A handle that encompasses a registration with the memory profiler. The registration is tied to the lifetime of this type; the memory profiler unregister the reporter when this object is dropped.
- Report
- A single memory-related measurement.
- Reporter
- A memory reporter is capable of measuring some data structure of interest. It’s structured as
an IPC sender that a
ReporterRequest
in transmitted over.ReporterRequest
objects in turn encapsulate the channel on which the memory profiling information is to be sent. - Reporter
Request - The protocol used to send reporter requests.
- Reports
Chan - A channel through which memory reports can be sent.
Enums§
- Profiler
Msg - Messages that can be sent to the memory profiler thread.
- Report
Kind - The various kinds of memory measurement.
Constants§
Traits§
- Opaque
Sender - A trait to abstract away the various kinds of message senders we use.
Functions§
- perform_
memory_ report - Invoke the provided function after initializing the memory profile tools. The function is expected to call all the desired [MallocSizeOf::size_of] for allocations reachable from the current thread.