Module trace_utils

Source
Expand description

This module implements support for tracing related to PTB execution. IMPORTANT: Bodies of all public functions in this module should be enclosed in a large if statement checking if tracing is enabled or not to make sure that any errors coming from these functions only manifest itself when tracing is enabled.

Functionsยง

add_coin_obj_info
Adds coin object info to the mutable vector passed as an argument. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
add_move_value_info_from_obj_value
Adds ExtMoveValueInfo to the mutable vector passed as an argument. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
add_move_value_info_from_value
Adds ExtMoveValueInfo to the mutable vector passed as an argument. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_execution_error
Inserts execution error event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_make_move_vec
Inserts make move vec event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_merge_coins
Inserts merge coins event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_move_call_end
Inserts Move call end event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_move_call_start
Inserts Move call start event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_ptb_summary
Inserts PTB summary event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_publish_event
Inserts publish event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_split_coins
Inserts split coins event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_transfer
Inserts transfer event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
trace_upgrade_event
Inserts upgrade event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.