NAME ^

src/trace.c - Tracing

DESCRIPTION ^

Tracing support for the runops_slow_core() function in src/runops_cores.c.

This is turned on with Parrot's -t option.

src/test_main.c

Functions ^

void trace_pmc_dump(Interp *interp, PMC *pmc)

Prints a PMC to stderr.

int trace_key_dump(Interp *interp, PMC *key)

Prints a key to stderr, returns the length of the output.

void trace_op_dump(Interp *interp, opcode_t *code_start, opcode_t *pc)

TODO: This isn't really part of the API, but here's its documentation.

Prints the PC, OP and ARGS. Used by trace_op().

void trace_op(Interp *interp, opcode_t *code_start, opcode_t *code_end, opcode_t *pc)

TODO: This isn't really part of the API, but here's its documentation.

Prints the PC, OP and ARGS. Used by runops_trace(). With bounds checking.

SEE ALSO ^

src/trace.h


parrot