SimGrid  3.13
Versatile Simulation of Distributed Systems
trace_mgr.cpp File Reference
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/str.h"
#include "xbt/dict.h"
#include "src/surf/trace_mgr.hpp"
#include "surf_private.h"
#include "xbt/RngStream.h"
#include <math.h>
#include <unordered_map>

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (surf_trace, surf,"Surf trace management")
 
tmgr_trace_t tmgr_trace_new_from_string (const char *name, const char *input, double periodicity)
 
tmgr_trace_t tmgr_trace_new_from_file (const char *filename)
 
tmgr_trace_t tmgr_empty_trace_new (void)
 
void tmgr_trace_free (tmgr_trace_t trace)
 
void tmgr_finalize (void)
 
void tmgr_trace_event_unref (tmgr_trace_iterator_t *trace_event)
 Free a trace event structure. More...
 

Variables

static std::unordered_map< const char *, simgrid::trace_mgr::trace * > trace_list
 

Function Documentation

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_trace  ,
surf  ,
"Surf trace management"   
)
tmgr_trace_t tmgr_trace_new_from_string ( const char *  name,
const char *  input,
double  periodicity 
)
tmgr_trace_t tmgr_trace_new_from_file ( const char *  filename)
tmgr_trace_t tmgr_empty_trace_new ( void  )
void tmgr_trace_free ( tmgr_trace_t  trace)
void tmgr_finalize ( void  )
void tmgr_trace_event_unref ( tmgr_trace_iterator_t trace_event)

Free a trace event structure.

This function frees a trace_event if it can be freed, ie, if it has the free_me flag set to 1. This flag indicates whether the structure is still used somewhere or not. When the structure is freed, the argument is set to nullptr

Variable Documentation

std::unordered_map<const char *, simgrid::trace_mgr::trace*> trace_list
static