Function backtrace

  • Generates a backtrace for the given thread's context.

    If you call this from Interceptor's onEnter or onLeave callbacks you should provide this.context for the optional context argument, as it will give you a more accurate backtrace. Omitting context means the backtrace will be generated from the current stack location, which may not give you a very good backtrace due to the JavaScript VM's potentially JITed stack frames.

    Parameters

    • Optional context: CpuContext

      CPU context to use for generating the backtrace.

    • Optional backtracer: Backtracer

      The kind of backtracer to use. Must be either Backtracer.FUZZY or Backtracer.ACCURATE, where the latter is the default if not specified.

    Returns NativePointer[]

Generated using TypeDoc