diff options
author | Josh Blum | 2013-06-19 20:16:48 -0700 |
---|---|---|
committer | Josh Blum | 2013-06-19 20:16:48 -0700 |
commit | 8fe3bdb1a67f7f17b8499fb822851102ca050217 (patch) | |
tree | 2d9ba53e496eeff7e69da6a16ad909ddaacbf23c | |
parent | 901afc2cbf6ac39a186f555789b8c8d8a00d7b07 (diff) | |
download | sandhi-8fe3bdb1a67f7f17b8499fb822851102ca050217.tar.gz sandhi-8fe3bdb1a67f7f17b8499fb822851102ca050217.tar.bz2 sandhi-8fe3bdb1a67f7f17b8499fb822851102ca050217.zip |
gras: query_topology visualize done ports
-rw-r--r-- | lib/top_block_query.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/top_block_query.cpp b/lib/top_block_query.cpp index b8bc7c2..f56184d 100644 --- a/lib/top_block_query.cpp +++ b/lib/top_block_query.cpp @@ -211,16 +211,19 @@ static std::string query_topology(ElementImpl *self, const ptree &query) { BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor()); std::string in_ports_str, out_ports_str; + const bool done = actor->data->block_state == BLOCK_STATE_DONE; for (size_t i = 0; i < w->get_num_inputs(); i++) { if (i) in_ports_str += " | "; in_ports_str += str(boost::format("<in%u> %u") % i % i); + if (not done and actor->data->inputs_done[i]) in_ports_str += "x"; } if (in_ports_str.size()) in_ports_str = "{" + in_ports_str + "} | "; for (size_t i = 0; i < w->get_num_outputs(); i++) { if (i) out_ports_str += " | "; out_ports_str += str(boost::format("<out%u> %u") % i % i); + if (not done and actor->data->outputs_done[i]) out_ports_str += "x"; } if (out_ports_str.size()) out_ports_str = " | {" + out_ports_str + "}"; std::string color; |