#include "trace_mgr_private.h"
#include <stdlib.h>
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(trace, surf,
+ "Logging specific to the SURF trace module");
+
static xbt_dict_t trace_list = NULL;
static void _tmgr_trace_free(void *trace)
{
FILE *f = NULL;
int linecount = 0;
char line[256];
- xbt_heap_float_t current_time = 0.0, previous_time = 0.0;
- xbt_maxmin_float_t value = -1.0;
xbt_heap_float_t periodicity = -1.0; /* No periodicity by default */
s_tmgr_event_t event;
tmgr_event_t last_event = NULL;
/* Parsing et création de la trace */
if ((f = fopen(filename, "r")) == NULL) {
- fprintf(stderr, "Cannot open file '%s'\n", filename);
- return NULL;
+ CRITICAL1("Cannot open file '%s'\n", filename);
}
trace = xbt_new0(s_tmgr_trace_t, 1);