commit | 4fbc827d24abbf2b984f69b144cbf7c84280763b | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Mon Mar 23 18:47:19 2020 -0700 |
committer | Googler <no-reply@google.com> | Tue Mar 24 14:52:45 2020 -0700 |
tree | a3a45855c8efa0a4adf352d99c7eb6fa6cb18de5 |
Internal change PiperOrigin-RevId: 302567603 Change-Id: I659321ad7f3ac97beef29c01a76aa3f4a3852ad6
A lightweight stack trace logging facility library for iOS.
Only support X86_64 and ARM64 architectures at the moment
// Buffer can be filled with up to 128 stack frames. void *buffer[128]; int count = LPSnapshotThreadStackTrace(buffer, sizeof(buffer), anyThread); // Get string representaion of the stack trace. NSArray<NSString *> *result = LPStackTraceString(buffer, count);
// Buffer can be filled with up to 40 threads. LPThreadStackTrace buffer[40]; int count = LPSnapshotAllThreadsStackTrace(buffer, sizeof(buffer)); // Get string representaion of the stack trace. NSArray<NSArray<NSString *> *> *result = LPStackTracesString(buffer, count);