Crashpad
|
An abstract interface to a snapshot representing a region of memory present in a snapshot process. More...
#include "snapshot/memory_snapshot.h"
Classes | |
class | Delegate |
An interface that MemorySnapshot clients must implement in order to receive memory snapshot data. More... | |
Public Member Functions | |
virtual uint64_t | Address () const =0 |
The base address of the memory snapshot in the snapshot process’ address space. | |
virtual size_t | Size () const =0 |
The size of the memory snapshot. | |
virtual bool | Read (Delegate *delegate) const =0 |
Calls Delegate::MemorySnapshotDelegateRead(), providing it with the memory snapshot’s data. More... | |
virtual const MemorySnapshot * | MergeWithOtherSnapshot (const MemorySnapshot *other) const =0 |
Creates a new MemorySnapshot based on merging this one with other. More... | |
An abstract interface to a snapshot representing a region of memory present in a snapshot process.
|
pure virtual |
Creates a new MemorySnapshot based on merging this one with other.
The ranges described by the two snapshots must either overlap or abut, and must be of the same concrete type.
nullptr
with an error logged. Implemented in crashpad::internal::MemorySnapshotGeneric, crashpad::internal::MemorySnapshotSanitized, crashpad::test::TestMemorySnapshot, crashpad::internal::MemorySnapshotMinidump, and crashpad::internal::MemorySnapshotIOS.
|
pure virtual |
Calls Delegate::MemorySnapshotDelegateRead(), providing it with the memory snapshot’s data.
Implementations do not necessarily read the memory snapshot data prior to this method being called. Memory snapshot data may be loaded lazily and may be discarded after being passed to the delegate. This provides clean memory management without burdening a snapshot implementation with the requirement that it track all memory region data simultaneously.
false
on failure, otherwise, the return value of Delegate::MemorySnapshotDelegateRead(), which should be true
on success and false
on failure. Implemented in crashpad::internal::MemorySnapshotGeneric, crashpad::internal::MemorySnapshotSanitized, crashpad::test::TestMemorySnapshot, crashpad::internal::MemorySnapshotMinidump, and crashpad::internal::MemorySnapshotIOS.