MCPcopy Create free account
hub / github.com/BabitMF/bmf / print_node_info_pretty

Method print_node_info_pretty

bmf/engine/c_engine/src/graph.cpp:989–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989void Graph::print_node_info_pretty() {
990#define LEFTW(width) std::setiosflags(std::ios::left) << std::setw(width)
991
992 std::cerr << LEFTW(10) << "NODE" << LEFTW(30) << "TYPE" << LEFTW(10)
993 << "STATUS" << LEFTW(20) << "SCHEDULE_COUNT" << LEFTW(20)
994 << "SCHEDULE_SUCCESS" << LEFTW(20) << "TIMESTAMP" << LEFTW(10)
995 << "IS_SOURCE" << std::endl;
996 for (auto nd : nodes_) {
997 std::cerr << LEFTW(10) << nd.second->get_id() << LEFTW(30)
998 << nd.second->get_type() << LEFTW(10)
999 << nd.second->get_status() << LEFTW(20)
1000 << nd.second->get_schedule_attempt_cnt() << LEFTW(20)
1001 << nd.second->get_schedule_success_cnt() << LEFTW(20)
1002 << nd.second->get_last_timestamp() << LEFTW(10)
1003 << (nd.second->is_source() ? "YES" : "NO") << std::endl;
1004 }
1005#undef LEFTW
1006}
1007
1008void Graph::quit_gracefully() {
1009 std::cerr << "quitting..." << std::endl;

Callers 1

quit_gracefullyMethod · 0.80

Calls 7

get_statusMethod · 0.80
get_last_timestampMethod · 0.80
is_sourceMethod · 0.80
get_idMethod · 0.45
get_typeMethod · 0.45

Tested by

no test coverage detected