diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-02-14 18:00:07 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-02-17 16:57:09 +0000 |
commit | aa7c8a5cb1111d46289e6b370dcd5b1d3f66c80d (patch) | |
tree | 314d692ac335fc2d60adcf2ccad55b2c397d7f93 | |
parent | 584c99957de16390b27f1a9ece1a37b4714e08c7 (diff) |
Show non-required jobs as dottedv5.15.0-beta1
Jobs that are in the graph but will not be scheduled (because they
have nothing to do) are showed in dashed line
Change-Id: Ia5d3b1b2b17d55820965b473099c0363cb645daf
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r-- | src/core/qscheduler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/qscheduler.cpp b/src/core/qscheduler.cpp index 872b3ccd6..c52445a35 100644 --- a/src/core/qscheduler.cpp +++ b/src/core/qscheduler.cpp @@ -71,6 +71,12 @@ void dumpJobs(QVector<Qt3DCore::QAspectJobPtr> jobs) { QTextStream stream(&f); stream << "digraph qt3d_jobs {" << Qt::endl; + + for (const auto &job: jobs) { + if (!Qt3DCore::QAspectJobPrivate::get(job.data())->isRequired()) + stream << QLatin1String("\t") << formatJob(job.data()) << QLatin1String(" [style=dotted]") << Qt::endl; + } + for (const auto &job: jobs) { auto dependencies = job->dependencies(); for (const auto &dependency: dependencies) |