- //trace uncategorized link utilization
- if (TRACE_uncategorized()){
- XBT_DEBUG("UNCAT LINK [%f - %f] %s bandwidth_used %f", now, now+delta, resource, value);
- container_t container = PJ_container_get (resource);
- type_t type = PJ_type_get ("bandwidth_used", container->type);
- instr_event (now, delta, type, container, value);
- }
-
- //trace categorized utilization
- if (TRACE_categorized()){
- if (!category)
- return;
- //variable of this category starts by 'b', because we have a link here
- char category_type[INSTR_DEFAULT_STR_SIZE];
- snprintf (category_type, INSTR_DEFAULT_STR_SIZE, "b%s", category);
- XBT_DEBUG("CAT LINK [%f - %f] %s %s %f", now, now+delta, resource, category_type, value);
- container_t container = PJ_container_get (resource);
- type_t type = PJ_type_get (category_type, container->type);
- instr_event (now, delta, type, container, value);
- }