HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stackTrace.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/arch/api.h"
#include "pxr/base/arch/defines.h"
#include <inttypes.h>
#include <stdio.h>
#include <functional>
#include <vector>
#include <string>
#include <iosfwd>
+ Include dependency graph for stackTrace.h:

Go to the source code of this file.

Typedefs

typedef std::function
< std::string(uintptr_t
address)> 
ArchStackTraceCallback
 A callback to get a symbolic representation of an address. More...
 
typedef void(* ArchCrashHandlerSystemCB )(void *userData)
 

Functions

ARCH_API void ArchLogPostMortem (const char *reason, const char *message=nullptr, const char *extraLogMsg=nullptr)
 
ARCH_API void ArchSetPostMortem (const char *command, const char *const argv[])
 
ARCH_API void ArchLogSessionInfo (const char *crashStackTrace=NULL)
 
ARCH_API void ArchSetLogSession (const char *command, const char *const argv[], const char *const crashArgv[])
 
ARCH_API void ArchEnableSessionLogging ()
 
ARCH_API void ArchPrintStackTrace (FILE *fout, const std::string &programName, const std::string &reason)
 Print a stack trace to the given FILE pointer. More...
 
ARCH_API void ArchPrintStackTrace (FILE *fout, const std::string &reason)
 
ARCH_API void ArchPrintStackTrace (std::ostream &out, const std::string &programName, const std::string &reason)
 
ARCH_API void ArchPrintStackTrace (std::ostream &out, const std::string &reason)
 
ARCH_API void ArchSetStackTraceCallback (const ArchStackTraceCallback &cb)
 
ARCH_API void ArchGetStackTraceCallback (ArchStackTraceCallback *cb)
 
ARCH_API time_t ArchGetAppLaunchTime ()
 
ARCH_API void ArchSetFatalStackLogging (bool flag)
 
ARCH_API bool ArchGetFatalStackLogging ()
 
ARCH_API void ArchSetProgramNameForErrors (const char *progName)
 
ARCH_API const char * ArchGetProgramNameForErrors ()
 
ARCH_API void ArchSetProgramInfoForErrors (const std::string &key, const std::string &value)
 
ARCH_API std::string ArchGetProgramInfoForErrors (const std::string &key)
 
ARCH_API void ArchSetExtraLogInfoForErrors (const std::string &key, std::vector< std::string > const *lines)
 
ARCH_API void ArchLogStackTrace (const std::string &progName, const std::string &reason, bool fatal=false, const std::string &sessionLog="")
 
ARCH_API void ArchLogStackTrace (const std::string &reason, bool fatal=false, const std::string &sessionLog="")
 
ARCH_API std::vector< std::stringArchGetStackTrace (size_t maxDepth)
 
ARCH_API void ArchGetStackFrames (size_t maxDepth, std::vector< uintptr_t > *frames)
 
ARCH_API void ArchGetStackFrames (size_t maxDepth, size_t numFramesToSkipAtTop, std::vector< uintptr_t > *frames)
 
ARCH_API void ArchPrintStackFrames (std::ostream &out, const std::vector< uintptr_t > &frames)
 Print stack frames to the given ostream. More...
 
ARCH_API int ArchCrashHandlerSystemv (const char *pathname, char *const argv[], int timeout, ArchCrashHandlerSystemCB callback, void *userData)
 

Detailed Description

Architecture-specific call-stack tracing routines.

Definition in file stackTrace.h.