Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow to set a tracing category for an Exec
[simgrid.git] / src / kernel / activity / ExecImpl.cpp
index dc7dad5..ea4995d 100644 (file)
@@ -86,6 +86,12 @@ void simgrid::kernel::activity::ExecImpl::set_priority(double priority)
     surf_action_->set_priority(priority);
 }
 
+void simgrid::kernel::activity::ExecImpl::set_category(std::string category)
+{
+  if (surf_action_)
+    surf_action_->set_category(category);
+}
+
 void simgrid::kernel::activity::ExecImpl::post()
 {
   if (host_ && host_->is_off()) { /* FIXME: handle resource failure for parallel tasks too */