class BaseCaptureStrategy
Defined at line 30 of file ../../src/developer/memory/metrics/capture_strategy.h
Extracts VMO information out of a process tree.
Typically, iterate through each process reported on by the
|ZX_INFO_PROCESS_VMOS| zx_object_info topic.
Note: To use this class, call |OnNewProcess| for all processes you intend to
track, then call |Finalize|.
Public Methods
void BaseCaptureStrategy ()
Defined at line 32 of file ../../src/developer/memory/metrics/capture_strategy.h
zx_status_t OnNewProcess (OS & os, Process process, zx::handle process_handle)
To be called with each |Process| that needs to be tracked.
Defined at line 47 of file ../../src/developer/memory/metrics/capture_strategy.cc
std::pair<std::unordered_map<zx_koid_t, Process>, std::unordered_map<zx_koid_t, Vmo>> Finalize (OS & os, BaseCaptureStrategy && base_capture_strategy)
Consumes the |BaseCaptureStrategy| to produce a pair of mappings from
|zx_koid_t| to known |Process|es and |Vmo|s.
Defined at line 81 of file ../../src/developer/memory/metrics/capture_strategy.cc