modelx.get_stacktrace

modelx.get_stacktrace()[source]

Get stack trace.

Get the call stack trace. The stack trace is a list of tuples each of which represents one of two types of operations, push(“ENTER”) or pop(“EXIT”) to/from the call stack. The table blow shows data sored in the tuple elements.

Index Content
0 “ENTER” or “EXIT”
1 Stack position
2 Time (Seconds elapsed from the epoch)
3 String to represent Cells object
4 A tuple of arguments to the Cells object

The call stack trace must be activated by start_stacktrace() to get the trace, otherwise a runtime error is raised,

Returns:A list of tuples each of which is a record of stack history.

New in version 0.0.25.