return 0;
}
+ if (!TRACE_is_enabled()){
+ return 0;
+ }
+
if (IS_TRACING) { /* what? trace is already active... ignore.. */
THROW0(tracing_error, TRACE_ERROR_START,
"TRACE_start called, but tracing is already active.");
pajeDefineContainerType("PLATFORM", "0", "platform");
pajeDefineContainerType("HOST", "PLATFORM", "HOST");
pajeDefineContainerType("LINK", "PLATFORM", "LINK");
+ pajeDefineVariableType("power", "HOST", "power");
+ pajeDefineVariableType("bandwidth", "LINK", "bandwidth");
+ pajeDefineVariableType("latency", "LINK", "latency");
+ pajeDefineEventType("source", "LINK", "source");
+ pajeDefineEventType("destination", "LINK", "destination");
if (IS_TRACING_PLATFORM) {
- pajeDefineVariableType("power", "HOST", "power");
if (TRACE_uncategorized()){
pajeDefineVariableType("power_used", "HOST", "power_used");
pajeDefineVariableType("bandwidth_used", "LINK", "bandwidth_used");
}
- pajeDefineVariableType("bandwidth", "LINK", "bandwidth");
- pajeDefineVariableType("latency", "LINK", "latency");
- pajeDefineEventType("source", "LINK", "source");
- pajeDefineEventType("destination", "LINK", "destination");
}
if (IS_TRACING_PROCESSES || IS_TRACING_VOLUME) {