1 #include <portability.h>
39 #include "soar_TraceNames.h"
44 using namespace soar_TraceNames;
76 print (thisAgent,
"Internal warning: wanted to reset wme timetag generator, but\n");
77 print (thisAgent,
"there are still some wmes allocated. (Probably a memory leak.)\n");
78 print (thisAgent,
"(Leaving timetag numbers alone.)\n");
79 xml_generate_warning(thisAgent,
"Internal warning: wanted to reset wme timetag generator, but\nthere are still some wmes allocated. (Probably a memory leak.)\n(Leaving timetag numbers alone.)");
90 allocate_with_pool (thisAgent, &thisAgent->
wme_pool, &w);
174 free_with_pool( &( thisAgent->
gds_pool ), w->
gds );
202 cons *c, *next_c, *cr;
208 #ifndef NO_TIMING_STUFF
209 #ifdef DETAILED_TIMING_STATS
210 soar_process_timer local_timer;
227 #ifndef NO_TIMING_STUFF
228 #ifdef DETAILED_TIMING_STATS
240 #ifndef NO_TIMING_STUFF
241 #ifdef DETAILED_TIMING_STATS
243 thisAgent->timers_match_cpu_time[thisAgent->
current_phase].update(local_timer);
253 if (w == cr->
first) {
254 const char *
const kWarningMessage =
"WARNING: WME added and removed in same phase : ";
255 print (thisAgent, const_cast< char* >( kWarningMessage) );
257 xml_att_val( thisAgent, kTypeString, kWarningMessage );
313 free_with_pool (&thisAgent->
wme_pool, w);