Now, DataflowExecutor notifies the beginning and end of the whole
execution whenever any observer exists (even when profiling mode is
disabled).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
}
assert(!_ready_jobs.empty()); // Cannot begin if there is no initial jobs
bool is_profiling = util::getConfigBool(util::config::PROFILING_MODE);
- if (is_profiling)
+ // TODO Fix indentation
{
// Notifiy Execution Begin
for (auto &o : _observers)
o->handleBegin(this);
}
}
+
while (!_ready_jobs.empty())
{
auto job = std::move((_ready_jobs.begin())->second);
_finished_jobs[job_index] = std::move(job);
}
assert(noWaitingJobs());
- if (is_profiling)
+ // TODO Fix indentation
{
for (auto &o : _observers)
{