summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-10 09:31:02 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-10 09:31:02 +0200
commitc4fa1521c1c727e50859df93a29c65913368c923 (patch)
tree72442f0c952b48d69feb6cf2fd5aaae6a660f571 /src
parent20544fb077beae2ec25eadf73292f091207f1ad2 (diff)
downloaddabmod-c4fa1521c1c727e50859df93a29c65913368c923.tar.gz
dabmod-c4fa1521c1c727e50859df93a29c65913368c923.tar.bz2
dabmod-c4fa1521c1c727e50859df93a29c65913368c923.zip
Simplify flowgraph print
Diffstat (limited to 'src')
-rw-r--r--src/Flowgraph.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Flowgraph.cpp b/src/Flowgraph.cpp
index 22f604b..3844e86 100644
--- a/src/Flowgraph.cpp
+++ b/src/Flowgraph.cpp
@@ -150,17 +150,15 @@ Flowgraph::~Flowgraph()
if (myProcessTime) {
fprintf(stderr, "Process time:\n");
- }
- std::vector<shared_ptr<Node> >::const_iterator node;
- for (node = nodes.begin(); node != nodes.end(); ++node) {
- if (myProcessTime) {
+
+ std::vector<shared_ptr<Node> >::const_iterator node;
+ for (node = nodes.begin(); node != nodes.end(); ++node) {
fprintf(stderr, " %30s: %10u us (%2.2f %%)\n",
(*node)->plugin()->name(),
(unsigned)(*node)->processTime(),
(*node)->processTime() * 100.0 / myProcessTime);
}
- }
- if (myProcessTime) {
+
fprintf(stderr, " %30s: %10u us (100.00 %%)\n", "total",
(unsigned)myProcessTime);
}