|
|
|
|
@ -154,7 +154,18 @@ static void statistics(struct lab *lab, uint64_t id, int loads) {
|
|
|
|
|
printf("%s\"%" PRIu64 "\"", separator++ ? "," : "", node->node_id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
printf("],\"streams\":["); separator = 0; |
|
|
|
|
printf("],\"profile_status\":{"); separator = 0; |
|
|
|
|
if (group) { |
|
|
|
|
struct stream_member_state state; |
|
|
|
|
printf("\"%" PRIu64 "\":%d", lab->inst->node_id, |
|
|
|
|
stream_member_load(lab->inst, lab->group, lab->inst->node_id, &state, NULL)); separator = 1; |
|
|
|
|
for (struct ll_entry *e = group->nodes->head; e; e = e->next) { |
|
|
|
|
struct TOPO_GROUP_NODE *node = (struct TOPO_GROUP_NODE *)e; |
|
|
|
|
printf("%s\"%" PRIu64 "\":%d", separator++ ? "," : "", node->node_id, |
|
|
|
|
stream_member_load(lab->inst, lab->group, node->node_id, &state, NULL)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
printf("},\"streams\":["); separator = 0; |
|
|
|
|
for (unsigned i = 0; i < LAB_STREAMS; i++) { |
|
|
|
|
struct lab_stream *stream = &lab->streams[i]; |
|
|
|
|
if (!stream->source) continue; |
|
|
|
|
|