|
| static uint32 | CaptureStackBackTrace (uint64 *BackTrace, uint32 MaxDepth, void *Context=nullptr) |
| | Capture a stack backtrace and optionally use the passed in exception pointers. 更多...
|
| |
| static uint32 | CaptureThreadStackBackTrace (uint64 ThreadId, uint64 *BackTrace, uint32 MaxDepth) |
| | Capture a stack backtrace for a specific thread. 更多...
|
| |
|
static FORCEINLINE int32 | GetProcessModuleCount () |
| | Returns the number of modules loaded by the currently running process.
|
| |
| static FORCEINLINE int32 | GetProcessModuleSignatures (FStackWalkModuleInfo *ModuleSignatures, const int32 ModuleSignaturesSize) |
| | Gets the signature for every module loaded by the currently running process. 更多...
|
| |
| static TArray< FProgramCounterSymbolInfo > | GetStack (int32 IgnoreCount, int32 MaxDepth=100, void *Context=nullptr) |
| | Walks the stack and updates the Stack array with the symbol information for each line in the stack. 更多...
|
| |
| static TMap< FName, FString > | GetSymbolMetaData () |
| | Gets the meta-data associated with all symbols of this target. 更多...
|
| |
| static void | Init () |
| | Initializes options related to stack walking from ini, i.e. 更多...
|
| |
| static bool | InitStackWalking () |
| | Initializes stack traversal and symbol. 更多...
|
| |
| static bool | InitStackWalkingForProcess (const FProcHandle &Process) |
| | Like InitStackWalking but initializes stack walking for another process. 更多...
|
| |
| static bool | ProgramCounterToHumanReadableString (int32 CurrentCallDepth, uint64 ProgramCounter, ANSICHAR *HumanReadableString, SIZE_T HumanReadableStringSize, FGenericCrashContext *Context=nullptr) |
| | Converts the passed in program counter address to a human readable string and appends it to the passed in one. 更多...
|
| |
| static void | ProgramCounterToSymbolInfo (uint64 ProgramCounter, FProgramCounterSymbolInfo &out_SymbolInfo) |
| | Converts the passed in program counter address to a symbol info struct, filling in module and filename, line number and displacement. 更多...
|
| |
| static void | StackWalkAndDump (ANSICHAR *HumanReadableString, SIZE_T HumanReadableStringSize, int32 IgnoreCount, void *Context=nullptr) |
| | Walks the stack and appends the human readable string to the passed in one. 更多...
|
| |
| static void | StackWalkAndDumpEx (ANSICHAR *HumanReadableString, SIZE_T HumanReadableStringSize, int32 IgnoreCount, uint32 Flags, void *Context=nullptr) |
| | Walks the stack and appends the human readable string to the passed in one. 更多...
|
| |
| static bool | SymbolInfoToHumanReadableString (const FProgramCounterSymbolInfo &SymbolInfo, ANSICHAR *HumanReadableString, SIZE_T HumanReadableStringSize) |
| | Converts the passed in symbol information to a human readable string and appends it to the passed in one. 更多...
|
| |
|
static bool | SymbolInfoToHumanReadableStringEx (const FProgramCounterSymbolInfoEx &SymbolInfo, FString &out_HumanReadableString) |
| | Same as above, but can be used with external applications.
|
| |
| static void | ThreadStackWalkAndDump (ANSICHAR *HumanReadableString, SIZE_T HumanReadableStringSize, int32 IgnoreCount, uint32 ThreadId) |
| | Walks the stack for the specified thread and appends the human readable string to the passed in one. 更多...
|
| |
Generic implementation for most platforms
| static bool FGenericPlatformStackWalk::ProgramCounterToHumanReadableString |
( |
int32 |
CurrentCallDepth, |
|
|
uint64 |
ProgramCounter, |
|
|
ANSICHAR * |
HumanReadableString, |
|
|
SIZE_T |
HumanReadableStringSize, |
|
|
FGenericCrashContext * |
Context = nullptr |
|
) |
| |
|
static |
Converts the passed in program counter address to a human readable string and appends it to the passed in one.
- 警告
- : The code assumes that HumanReadableString is large enough to contain the information.
-
: Please, do not override this method. Can't be modified or altered without notice.
This method is the same for all platforms to simplify parsing by the crash processor.
Example formatted line:
UE4Editor_Core!FOutputDeviceWindowsErrorSerialize() (0xddf1bae5) + 620 bytes [\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:110] ModuleName!FunctionName (ProgramCounter) + offset bytes [StrippedFilepath:LineNumber]
- 参数
-
| CurrentCallDepth | Depth of the call, if known (-1 if not - note that some platforms may not return meaningful information in the latter case) |
| ProgramCounter | Address to look symbol information up for |
| HumanReadableString | String to concatenate information with |
| HumanReadableStringSize | size of string in characters |
| Context | Pointer to crash context, if any |
- 返回
- true if the symbol was found, otherwise false