ContainerTracer  0.1
Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes | Private Member Functions
web.package.trace_replay.TraceReplay Class Reference

trace-replay driver. More...

Inheritance diagram for web.package.trace_replay.TraceReplay:
Inheritance graph
Collaboration diagram for web.package.trace_replay.TraceReplay:
Collaboration graph

Public Member Functions

def __init__
 
- Public Member Functions inherited from web.package.container_tracer.ContainerTracer
def __init__
 Initialize with socketio before run container-tracer. More...
 
def set_global_config
 Set global configuration object by this function. More...
 
def container_tracer_free (self)
 Free memory after running container-trace. More...
 
def run_all_container_tracer (self)
 Run container-tracer. More...
 

Static Public Member Functions

def prepare_data_dict
 Create a data dictionary which will contain the interval results. More...
 
def save_interval_to_files
 save interval results to json file. More...
 
- Static Public Member Functions inherited from web.package.container_tracer.ContainerTracer
def get_valid_filename
 Check the validation of the filename. More...
 

Data Fields

 config_json
 
- Data Fields inherited from web.package.container_tracer.ContainerTracer
 socketio
 
 libc
 
 nr_tasks
 
 global_config
 
 driver
 

Static Public Attributes

int FIN = 3
 

Private Member Functions

def _set_config
 Save task# and dump into json string. More...
 
def _get_interval_result
 receive trace-replay result. More...
 
def _refresh (self)
 Refresh frotnend chart by a interval with trace-replay aysnc. More...
 

Detailed Description

trace-replay driver.

Constructor & Destructor Documentation

◆ __init__()

def web.package.trace_replay.TraceReplay.__init__ (   self,
  socketio 
)

Member Function Documentation

◆ _get_interval_result()

def web.package.trace_replay.TraceReplay._get_interval_result (   self,
  key 
)
private

receive trace-replay result.

Parameters
[in]keyWant to select certain group.
Returns
result mapped with key in runner module.
Here is the call graph for this function:

◆ _refresh()

def web.package.trace_replay.TraceReplay._refresh (   self,
  bool 
)
private

Refresh frotnend chart by a interval with trace-replay aysnc.

Send result via chart module.

Returns
True for success to execute, False for fail to execute.
Note
This function will free resources.
Here is the call graph for this function:

◆ _set_config()

def web.package.trace_replay.TraceReplay._set_config (   self,
  config 
)
private

Save task# and dump into json string.

Parameters
[in]confgconfig options from frontend.

◆ prepare_data_dict()

def web.package.trace_replay.TraceReplay.prepare_data_dict (   key_set)
static

Create a data dictionary which will contain the interval results.

Parameters
[in]ket_setSet of keys.
Returns
data structure which will contain the interval results.

◆ save_interval_to_files()

def web.package.trace_replay.TraceReplay.save_interval_to_files (   data_dict)
static

save interval results to json file.

Parameters
[in]data_dictdictionary data structure which contains the interval results.

Field Documentation

◆ config_json

web.package.trace_replay.TraceReplay.config_json

◆ FIN

int web.package.trace_replay.TraceReplay.FIN = 3
static

The documentation for this class was generated from the following file: