From 1873837128eca281cb7ccae1ca564af56e1e10b4 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Mon, 23 Apr 2012 16:00:06 -0700 Subject: [PATCH] improve scheduler debugging --- model.cc | 4 ++++ schedule.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/model.cc b/model.cc index bf95680..773d723 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 d344fb1..0f550c4 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++) -- 2.34.1