Learn R Programming

winch (version 0.0.8)

winch_trace_back: Native stack trace

Description

This function returns the native stack trace as a data frame. Each native stack frame corresponds to one row in the returned data frame. Deep function calls come first, the last row corresponds to the running process's entry point.

Usage

winch_trace_back()

Arguments

Value

A data frame with the columns:

  • func: function name

  • ip: instruction pointer

  • pathname: path to shared library

Details

On Windows, call winch_init_library() to return function names for a specific package.

See Also

sys.calls() for the R equivalent.

Examples

Run this code
# NOT RUN {
winch_trace_back()

foo <- function() {
  winch_call(bar)
}

bar <- function() {
  winch_trace_back()
}

foo()
# }

Run the code above in your browser using DataLab