From 848f95383e4a29010f73eeca63fa26c8118dd72c Mon Sep 17 00:00:00 2001 From: cristianrosa Date: Mon, 20 Dec 2010 09:45:36 +0000 Subject: [PATCH] Improve debugging information git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9298 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_smurf.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/simix/smx_smurf.c b/src/simix/smx_smurf.c index 0e287f6599..8c4b3705a8 100644 --- a/src/simix/smx_smurf.c +++ b/src/simix/smx_smurf.c @@ -53,12 +53,19 @@ void SIMIX_request_push() smx_req_t SIMIX_request_pop(void) { - return xbt_heap_pop(req_todo); + smx_req_t req = xbt_heap_pop(req_todo); + if(req) + DEBUG4("Popped request %s (%d) of %s; now %d requests waiting", + SIMIX_request_name(req->issuer->request.call), + req->issuer->request.call, + req->issuer->name,xbt_heap_size(req_todo)); + return req; } void SIMIX_request_answer(smx_req_t req) { if (req->issuer != simix_global->maestro_process){ + DEBUG2("Answer request %s (%d)", SIMIX_request_name(req->call), req->call); req->issuer->request.call = REQ_NO_REQ; xbt_dynar_push_as(simix_global->process_to_run, smx_process_t, req->issuer); } -- 2.20.1