diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Utilities/Stacktrace.h |
Diffstat (limited to 'Runtime/Utilities/Stacktrace.h')
-rw-r--r-- | Runtime/Utilities/Stacktrace.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Runtime/Utilities/Stacktrace.h b/Runtime/Utilities/Stacktrace.h new file mode 100644 index 0000000..7344e91 --- /dev/null +++ b/Runtime/Utilities/Stacktrace.h @@ -0,0 +1,12 @@ +#ifndef STACKTRACE_H +#define STACKTRACE_H + +void InitializeStackWalker(); + +std::string GetStacktrace(bool includeMonoStackFrames = false); + +//can't use string version when debugging new/delete allocations, as string class may allocate memory itself! +void GetStacktrace(char *trace, int maxSize, int maxFrames = INT_MAX); +UInt32 GetStacktrace(void** trace, int maxFrames, int startframe); +void GetReadableStackTrace(char* output, int bufsize, void** input, int count); +#endif |