class ThreadSnapshot

Defined at line 30 of file ../../third_party/crashpad/src/snapshot/thread_snapshot.h

An abstract interface to a snapshot representing a thread

(lightweight process) present in a snapshot process.

Public Methods

const CPUContext * Context ()

Returns a CPUContext object corresponding to the thread’s CPU

context.

The caller does not take ownership of this object, it is scoped to the

lifetime of the ThreadSnapshot object that it was obtained from.

const MemorySnapshot * Stack ()

Returns a MemorySnapshot object corresponding to the memory region

that contains the thread’s stack, or `nullptr` if no stack region is

available.

The caller does not take ownership of this object, it is scoped to the

lifetime of the ThreadSnapshot object that it was obtained from.

uint64_t ThreadID ()

Returns the thread’s identifier.

%Thread identifiers are at least unique within a process, and may be

unique system-wide.

std::string ThreadName ()

Returns the thread's name.

int SuspendCount ()

Returns the thread’s suspend count.

A suspend count of `0` denotes a schedulable (not suspended) thread.

int Priority ()

Returns the thread’s priority.

Threads with higher priorities will have higher priority values.

uint64_t ThreadSpecificDataAddress ()

Returns the base address of a region used to store thread-specific

data.

std::vector<const MemorySnapshot *> ExtraMemory ()

Returns a vector of additional memory blocks that should be

included in a minidump.

Returns

A vector of MemorySnapshot objects that will be included in the

crash dump. The caller does not take ownership of these objects, they

are scoped to the lifetime of the ThreadSnapshot object that they

were obtained from.

void ~ThreadSnapshot ()

Defined at line 32 of file ../../third_party/crashpad/src/snapshot/thread_snapshot.h