SimGrid  3.16
Versatile Simulation of Distributed Systems
trace_mgr.cpp File Reference
#include "xbt/sysdep.h"
#include "xbt/dict.h"
#include "xbt/log.h"
#include "xbt/str.h"
#include "src/surf/surf_interface.hpp"
#include "src/surf/trace_mgr.hpp"
#include "surf_private.h"
#include "xbt/RngStream.h"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/split.hpp>
#include <fstream>
#include <math.h>
#include <sstream>
#include <unordered_map>

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::trace_mgr
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (surf_trace, surf, "Surf trace management")
 
static bool doubleEq (double d1, double d2)
 
std::ostream & simgrid::trace_mgr::operator<< (std::ostream &out, const DatedValue &e)
 
tmgr_trace_t tmgr_trace_new_from_string (const char *name, std::string input, double periodicity)
 
tmgr_trace_t tmgr_trace_new_from_file (const char *filename)
 
void tmgr_finalize ()
 
void tmgr_trace_event_unref (tmgr_trace_event_t *trace_event)
 Free a trace event structure. More...
 

Variables

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

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_trace  ,
surf  ,
"Surf trace management"   
)

◆ doubleEq()

static bool doubleEq ( double  d1,
double  d2 
)
inlinestatic

◆ tmgr_trace_new_from_string()

tmgr_trace_t tmgr_trace_new_from_string ( const char *  name,
std::string  input,
double  periodicity 
)

◆ tmgr_trace_new_from_file()

tmgr_trace_t tmgr_trace_new_from_file ( const char *  filename)

◆ tmgr_finalize()

void tmgr_finalize ( )

◆ tmgr_trace_event_unref()

void tmgr_trace_event_unref ( tmgr_trace_event_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

◆ trace_list

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