Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
hide tracing from MSG
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 16 Jul 2018 10:21:38 +0000 (12:21 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 16 Jul 2018 10:21:38 +0000 (12:21 +0200)
src/msg/msg_gos.cpp

index da08135..65d91fc 100644 (file)
@@ -113,11 +113,8 @@ msg_error_t MSG_process_sleep(double nb_sec)
 {
   msg_error_t status = MSG_OK;
 
 {
   msg_error_t status = MSG_OK;
 
-  if (TRACE_actor_is_enabled())
-    simgrid::instr::Container::by_name(instr_pid(MSG_process_self()))->get_state("ACTOR_STATE")->push_event("sleep");
-
   try {
   try {
-    simcall_process_sleep(nb_sec);
+    simgrid::s4u::this_actor::sleep_for(nb_sec);
   }
   catch(xbt_ex& e) {
     if (e.category == cancel_error) {
   }
   catch(xbt_ex& e) {
     if (e.category == cancel_error) {
@@ -133,9 +130,6 @@ msg_error_t MSG_process_sleep(double nb_sec)
       throw;
   }
 
       throw;
   }
 
-  if (TRACE_actor_is_enabled())
-    simgrid::instr::Container::by_name(instr_pid(MSG_process_self()))->get_state("ACTOR_STATE")->pop_event();
-
   return status;
 }
 
   return status;
 }