wrench::TraceFileLoader Class Reference

A class that can load a job submission trace (a.k.a. supercomputer workload) in the SWF format (see http://www.cs.huji.ac.il/labs/parallel/workload/swf.html) and store it as a vector of simulation-relevant fields. More...

#include <TraceFileLoader.h>

Static Public Member Functions

static std::vector< std::tuple< std::string, double, double, double, double, unsigned int > > loadFromTraceFile (std::string filename, double load_time_compensation)
 Load the workflow trace file. More...
 

Detailed Description

A class that can load a job submission trace (a.k.a. supercomputer workload) in the SWF format (see http://www.cs.huji.ac.il/labs/parallel/workload/swf.html) and store it as a vector of simulation-relevant fields.

Member Function Documentation

◆ loadFromTraceFile()

std::vector< std::tuple< std::string, double, double, double, double, unsigned int > > wrench::TraceFileLoader::loadFromTraceFile ( std::string  filename,
double  load_time_compensation 
)
static

Load the workflow trace file.

Parameters
filenamethe path to the trace file in SWF format or in JSON format
load_time_compensationan offset to add to submit times in the trace file
Returns
a vector of tuples, where each tuple is a job description with the following fields:
  • job id
  • submission time
  • actual time
  • requested time,
  • requested ram
  • requested number of nodes
Exceptions
std::invalid_argument

The documentation for this class was generated from the following files:
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/include/wrench/util/TraceFileLoader.h
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/services/compute/batch/TraceFileLoader.cpp