diff --git a/lib/scheduler.cc b/lib/scheduler.cc index 75e18414..2beac8a4 100644 --- a/lib/scheduler.cc +++ b/lib/scheduler.cc @@ -461,7 +461,11 @@ void Scheduler::schedule_sync(BaseAction* action, const Tag& tag) { log_.debug() << "Schedule action " << action->fqn() << (action->is_logical() ? " synchronously " : " asynchronously ") << " with tag " << tag; reactor_assert(logical_time_ < tag); - tracepoint(reactor_cpp, schedule_action, action->container()->fqn(), action->name(), tag); + if (action->container() != nullptr) { + tracepoint(reactor_cpp, schedule_action, action->container()->fqn(), action->name(), tag); + } else { + tracepoint(reactor_cpp, schedule_action, action->environment()->name(), action->name(), tag); + } Statistics::increment_scheduled_actions(); const auto& action_list = event_queue_.insert_event_at(tag);