Skip to content

Instantly share code, notes, and snippets.

@nitsanw
Created April 25, 2016 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitsanw/dfe809a21869ccbd0e8d7b56e0079432 to your computer and use it in GitHub Desktop.
Save nitsanw/dfe809a21869ccbd0e8d7b56e0079432 to your computer and use it in GitHub Desktop.
typedef struct {
jint lineno; // BCI in the source file
jmethodID method_id; // method executed in this frame
} ASGCT_CallFrame;
typedef struct {
JNIEnv *env_id //Env where trace was recorded
jint num_frames; // number of frames in this trace
ASGCT_CallFrame *frames;
} ASGCT_CallTrace;
void AsyncGetCallTrace(ASGCT_CallTrace *trace, // pre-allocated trace to fill
jint depth, // max number of frames to walk up the stack
void* ucontext) // signal context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment