class MemoryAnalysis

Defined at line 61 of file ../../src/developer/debug/zxdb/console/analyze_memory.h

Implementation of the memory analysis. Consumers should use AnalyzeMemory above, this is in the

header so it can be unit tested more easily.

This class is refcounted and manages its own lifetime across various asynchronous callbacks to

issue the final complete callback.

Public Methods

void Schedule (const AnalyzeMemoryOptions & opts)

Opts is passed again so we don't have to save it in the constructor, which is unsafe (the

process and thread pointers aren't weak and may disappear).

Defined at line 61 of file ../../src/developer/debug/zxdb/console/analyze_memory.cc

void SetAspace (std::vector<debug_ipc::AddressRegion> aspace)

Tests can call these functions to manually provide the data that would normally be provided via

IPC call. To use, call before "Schedule". Note: Frame 0's registers should be set first.

Defined at line 105 of file ../../src/developer/debug/zxdb/console/analyze_memory.cc

void SetStack (const Stack & stack)

Defined at line 111 of file ../../src/developer/debug/zxdb/console/analyze_memory.cc

void SetMemory (MemoryDump dump)

Defined at line 133 of file ../../src/developer/debug/zxdb/console/analyze_memory.cc

Friends

class MakeRefCountedHelper
class RefCountedThreadSafe