From: Brian Norris Date: Mon, 23 Apr 2012 23:00:06 +0000 (-0700) Subject: improve scheduler debugging X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1873837128eca281cb7ccae1ca564af56e1e10b4;p=c11tester.git improve scheduler debugging --- diff --git a/model.cc b/model.cc index bf956804..773d723e 100644 --- a/model.cc +++ b/model.cc @@ -175,6 +175,10 @@ void ModelChecker::print_trace(void) printf("---------------------------------------------------------------------\n"); printf("Total nodes created: %d\n\n", TreeNode::getTotalNodes()); + scheduler->print(); + + printf("\nTrace:\n\n"); + for (it = action_trace->begin(); it != action_trace->end(); it++) { DBG(); (*it)->print(); diff --git a/schedule.cc b/schedule.cc index d344fb1a..0f550c41 100644 --- a/schedule.cc +++ b/schedule.cc @@ -40,7 +40,7 @@ void Scheduler::print() printf("Current thread: %d\n", current->get_id()); else printf("No current thread\n"); - printf("# Threads in ready list: %ld\n", readyList.size()); + printf("Num. threads in ready list: %ld\n", readyList.size()); std::list::iterator it; for (it = readyList.begin(); it != readyList.end(); it++)