winch_trace_back: Native stack trace

View source: R/trace_back.R

winch_trace_backR Documentation

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()

Details

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

Value

A data frame with the columns:

  • func: function name

  • ip: instruction pointer

  • pathname: path to shared library

  • is_libr: a logical, TRUE if this entry is from R's shared library, determined via procmaps::path_is_libr() on the pathname component

See Also

sys.calls() for the R equivalent.

Examples


winch_trace_back()

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

bar <- function() {
  winch_trace_back()
}

foo()


winch documentation built on April 20, 2023, 9:14 a.m.