Soar Kernel
9.3.2 08-06-12
|
Go to the source code of this file.
Macros | |
#define | FOR_ANYTHING_TF 0 /* format applies to any object */ |
#define | FOR_OPERATORS_TF 2 /* format applies only to operators */ |
#define | FOR_STATES_TF 1 /* format applies only to states */ |
Typedefs | |
typedef struct agent_struct | agent |
typedef char | Bool |
typedef union symbol_union | Symbol |
Functions | |
Bool | add_trace_format (agent *thisAgent, Bool stack_trace, int type_restriction, Symbol *name_restriction, const char *format_string) |
void | init_tracing (agent *thisAgent) |
void | print_all_trace_formats (agent *thisAgent, Bool stack_trace) |
void | print_all_trace_formats_tcl (Bool stack_trace) |
void | print_object_trace (agent *thisAgent, Symbol *object) |
void | print_stack_trace (agent *thisAgent, Symbol *object, Symbol *state, int slot_type, Bool allow_cycle_counts) |
Bool | remove_trace_format (agent *thisAgent, Bool stack_trace, int type_restriction, Symbol *name_restriction) |
Variables | |
char * | help_on_trace_format_escapes [] |
#define FOR_ANYTHING_TF 0 /* format applies to any object */ |
Definition at line 48 of file trace.h.
Referenced by destroy_soar_agent(), find_appropriate_trace_format(), init_soar_agent(), object_to_trace_string(), set_print_trace_formats(), and set_tagged_trace_formats().
#define FOR_OPERATORS_TF 2 /* format applies only to operators */ |
Definition at line 50 of file trace.h.
Referenced by destroy_soar_agent(), init_soar_agent(), object_to_trace_string(), print_lowest_slot_in_context_stack(), print_stack_trace_xml(), set_print_trace_formats(), and set_tagged_trace_formats().
#define FOR_STATES_TF 1 /* format applies only to states */ |
Definition at line 49 of file trace.h.
Referenced by destroy_soar_agent(), init_soar_agent(), object_to_trace_string(), print_lowest_slot_in_context_stack(), print_stack_trace_xml(), set_print_trace_formats(), and set_tagged_trace_formats().
typedef struct agent_struct agent |
typedef union symbol_union Symbol |
Bool add_trace_format | ( | agent * | thisAgent, |
Bool | stack_trace, | ||
int | type_restriction, | ||
Symbol * | name_restriction, | ||
const char * | format_string | ||
) |
Definition at line 727 of file trace.cpp.
References add_to_hash_table(), allocate_memory(), FALSE, tracing_rule_struct::format, MISCELLANEOUS_MEM_USAGE, tracing_rule_struct::name_restriction, agent_struct::object_tf_for_anything, agent_struct::object_tr_ht, parse_format_string(), remove_trace_format(), agent_struct::stack_tf_for_anything, agent_struct::stack_tr_ht, symbol_add_ref(), TRUE, and tracing_rule_struct::type_restriction.
Referenced by init_soar_agent(), set_print_trace_formats(), and set_tagged_trace_formats().
void init_tracing | ( | agent * | thisAgent | ) |
Definition at line 654 of file trace.cpp.
References make_hash_table(), NIL, agent_struct::object_tf_for_anything, agent_struct::object_tr_ht, agent_struct::stack_tf_for_anything, agent_struct::stack_tr_ht, and tracing_rule_hash_function().
Referenced by init_soar_agent().
void print_all_trace_formats_tcl | ( | Bool | stack_trace | ) |
Definition at line 1377 of file trace.cpp.
References free_growable_string(), get_new_tc_number(), object_to_trace_string(), print_string(), text_of_growable_string(), and agent_struct::tf_printing_tc.
void print_stack_trace | ( | agent * | thisAgent, |
Symbol * | object, | ||
Symbol * | state, | ||
int | slot_type, | ||
Bool | allow_cycle_counts | ||
) |
Definition at line 1459 of file trace.cpp.
References free_growable_string(), get_new_tc_number(), print_stack_trace_xml(), print_string(), selection_to_trace_string(), text_of_growable_string(), and agent_struct::tf_printing_tc.
Referenced by print_lowest_slot_in_context_stack().
Bool remove_trace_format | ( | agent * | thisAgent, |
Bool | stack_trace, | ||
int | type_restriction, | ||
Symbol * | name_restriction | ||
) |
Definition at line 691 of file trace.cpp.
References hash_table_struct::buckets, deallocate_trace_format_list(), FALSE, format, tracing_rule_struct::format, free_memory(), hash_name_restriction(), hash_table_struct::log2size, MISCELLANEOUS_MEM_USAGE, tracing_rule_struct::name_restriction, tracing_rule_struct::next_in_hash_bucket, NIL, agent_struct::object_tf_for_anything, agent_struct::object_tr_ht, remove_from_hash_table(), agent_struct::stack_tf_for_anything, agent_struct::stack_tr_ht, symbol_remove_ref(), TRUE, tracing_rule_struct::type_restriction, and uint32_t().
Referenced by add_trace_format(), and destroy_soar_agent().
char* help_on_trace_format_escapes[] |