Package org.simgrid.trace
Class Trace
- java.lang.Object
-
- org.simgrid.trace.Trace
-
public final class Trace extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Trace()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]getHostVariablesName()Get declared user host variables.static java.lang.String[]getLinkVariablesName()Get declared user link variables.static voidhostPopState(java.lang.String host, java.lang.String state)Pop the last value of a state of a given host.static voidhostPushState(java.lang.String host, java.lang.String state, java.lang.String value)Push a new value for a state of a given host.static voidhostSetState(java.lang.String host, java.lang.String state, java.lang.String value)Set the user state to the given value.static voidhostStateDeclare(java.lang.String name)Declare a user state that will be associated to hosts.static voidhostStateDeclareValue(java.lang.String state, java.lang.String value, java.lang.String color)Declare a new value for a user state associated to hosts.static voidhostVariableAdd(java.lang.String host, java.lang.String variable, double value)Add a value to a variable of a host.static voidhostVariableAddWithTime(double time, java.lang.String host, java.lang.String variable, double value)Add a value to a variable of a host at a given timestamp.static voidhostVariableDeclare(java.lang.String variable)Declare a new user variable associated to hosts.static voidhostVariableDeclareWithColor(java.lang.String variable, java.lang.String color)Declare a new user variable associated to hosts with a color.static voidhostVariableSet(java.lang.String host, java.lang.String variable, double value)Set the value of a variable of a host.static voidhostVariableSetWithTime(double time, java.lang.String host, java.lang.String variable, double value)Set the value of a variable of a host at a given timestamp.static voidhostVariableSub(java.lang.String host, java.lang.String variable, double value)Subtract a value from a variable of a host.static voidhostVariableSubWithTime(double time, java.lang.String host, java.lang.String variable, double value)Subtract a value from a variable of a host at a given timestamp.static voidlinkSrcDstVariableAdd(java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Add a value to the variable present in the links connecting source and destination.static voidlinkSrcdstVariableAddWithTime(double time, java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Add a value to the variable present in the links connecting source and destination at a given timestamp.static voidlinkSrcDstVariableSet(java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Set the value of the variable present in the links connecting source and destination.static voidlinkSrcDstVariableSetWithTime(double time, java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Set the value of the variable present in the links connecting source and destination at a given timestamp.static voidlinkSrcDstVariableSub(java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Subtract a value from the variable present in the links connecting source and destination.static voidlinkSrcDstVariableSubWithTime(double time, java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Subtract a value from the variable present in the links connecting source and destination at a given timestamp.static voidlinkVariableAdd(java.lang.String link, java.lang.String variable, double value)Add a value to a variable of a link.static voidlinkVariableAddWithTime(double time, java.lang.String link, java.lang.String variable, double value)Add a value to a variable of a link at a given timestamp.static voidlinkVariableDeclare(java.lang.String variable)Declare a new user variable associated to links.static voidlinkVariableDeclareWithColor(java.lang.String variable, java.lang.String color)Declare a new user variable associated to links with a color.static voidlinkVariableSet(java.lang.String link, java.lang.String variable, double value)Set the value of a variable of a link.static voidlinkVariableSetWithTime(double time, java.lang.String link, java.lang.String variable, double value)Set the value of a variable of a link at a given timestamp.static voidlinkVariableSub(java.lang.String link, java.lang.String variable, double value)Subtract a value from a variable of a link.static voidlinkVariableSubWithTime(double time, java.lang.String link, java.lang.String variable, double value)Subtract a value from a variable of a link at a given timestamp.static voidvmVariableDeclare(java.lang.String variable)Declare a new user variable associated to VMs.static voidvmVariableSet(java.lang.String vm, java.lang.String variable, double value)Set the value of a variable of a VM.
-
-
-
Method Detail
-
hostVariableDeclareWithColor
public static final void hostVariableDeclareWithColor(java.lang.String variable, java.lang.String color)Declare a new user variable associated to hosts with a color.- Parameters:
variable-color-
-
hostVariableAdd
public static final void hostVariableAdd(java.lang.String host, java.lang.String variable, double value)Add a value to a variable of a host.- Parameters:
host-variable-value-
-
hostVariableSub
public static final void hostVariableSub(java.lang.String host, java.lang.String variable, double value)Subtract a value from a variable of a host.- Parameters:
host-variable-value-
-
hostVariableSetWithTime
public static final void hostVariableSetWithTime(double time, java.lang.String host, java.lang.String variable, double value)Set the value of a variable of a host at a given timestamp.- Parameters:
time-host-variable-value-
-
hostVariableAddWithTime
public static final void hostVariableAddWithTime(double time, java.lang.String host, java.lang.String variable, double value)Add a value to a variable of a host at a given timestamp.- Parameters:
time-host-variable-value-
-
hostVariableSubWithTime
public static final void hostVariableSubWithTime(double time, java.lang.String host, java.lang.String variable, double value)Subtract a value from a variable of a host at a given timestamp.- Parameters:
time-host-variable-value-
-
getHostVariablesName
public static final java.lang.String[] getHostVariablesName()
Get declared user host variables.
-
linkVariableDeclare
public static final void linkVariableDeclare(java.lang.String variable)
Declare a new user variable associated to links.- Parameters:
variable-
-
linkVariableDeclareWithColor
public static final void linkVariableDeclareWithColor(java.lang.String variable, java.lang.String color)Declare a new user variable associated to links with a color.- Parameters:
variable-color-
-
linkVariableSet
public static final void linkVariableSet(java.lang.String link, java.lang.String variable, double value)Set the value of a variable of a link.- Parameters:
link-variable-value-
-
linkVariableAdd
public static final void linkVariableAdd(java.lang.String link, java.lang.String variable, double value)Add a value to a variable of a link.- Parameters:
link-variable-value-
-
linkVariableSub
public static final void linkVariableSub(java.lang.String link, java.lang.String variable, double value)Subtract a value from a variable of a link.- Parameters:
link-variable-value-
-
linkVariableSetWithTime
public static final void linkVariableSetWithTime(double time, java.lang.String link, java.lang.String variable, double value)Set the value of a variable of a link at a given timestamp.- Parameters:
time-link-variable-value-
-
linkVariableAddWithTime
public static final void linkVariableAddWithTime(double time, java.lang.String link, java.lang.String variable, double value)Add a value to a variable of a link at a given timestamp.- Parameters:
time-link-variable-value-
-
linkVariableSubWithTime
public static final void linkVariableSubWithTime(double time, java.lang.String link, java.lang.String variable, double value)Subtract a value from a variable of a link at a given timestamp.- Parameters:
time-link-variable-value-
-
linkSrcDstVariableSet
public static final void linkSrcDstVariableSet(java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Set the value of the variable present in the links connecting source and destination.- Parameters:
src-dst-variable-value-
-
linkSrcDstVariableAdd
public static final void linkSrcDstVariableAdd(java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Add a value to the variable present in the links connecting source and destination.- Parameters:
src-dst-variable-value-
-
linkSrcDstVariableSub
public static final void linkSrcDstVariableSub(java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Subtract a value from the variable present in the links connecting source and destination.- Parameters:
src-dst-variable-value-
-
linkSrcDstVariableSetWithTime
public static final void linkSrcDstVariableSetWithTime(double time, java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Set the value of the variable present in the links connecting source and destination at a given timestamp.- Parameters:
time-src-dst-variable-value-
-
linkSrcdstVariableAddWithTime
public static final void linkSrcdstVariableAddWithTime(double time, java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Add a value to the variable present in the links connecting source and destination at a given timestamp.- Parameters:
time-src-dst-variable-value-
-
linkSrcDstVariableSubWithTime
public static final void linkSrcDstVariableSubWithTime(double time, java.lang.String src, java.lang.String dst, java.lang.String variable, double value)Subtract a value from the variable present in the links connecting source and destination at a given timestamp.- Parameters:
time-src-dst-variable-value-
-
getLinkVariablesName
public static final java.lang.String[] getLinkVariablesName()
Get declared user link variables.
-
hostStateDeclare
public static final void hostStateDeclare(java.lang.String name)
Declare a user state that will be associated to hosts. A user host state can be used to trace application states.- Parameters:
name- The name of the new state to be declared.
-
hostStateDeclareValue
public static final void hostStateDeclareValue(java.lang.String state, java.lang.String value, java.lang.String color)Declare a new value for a user state associated to hosts. The color needs to be a string with three numbers separated by spaces in the range [0,1]. A light-gray color can be specified using "0.7 0.7 0.7" as color.- Parameters:
state- The name of the new state to be declared.value- The name of the valuecolor- The color of the value
-
hostSetState
public static final void hostSetState(java.lang.String host, java.lang.String state, java.lang.String value)Set the user state to the given value. (the queue is totally flushed and reinitialized with the given state).- Parameters:
host- The name of the host to be considered.state- The name of the state previously declared.value- The new value of the state.
-
hostPushState
public static final void hostPushState(java.lang.String host, java.lang.String state, java.lang.String value)Push a new value for a state of a given host.- Parameters:
host- The name of the host to be considered.state- The name of the state previously declared.value- The value to be pushed.
-
hostPopState
public static final void hostPopState(java.lang.String host, java.lang.String state)Pop the last value of a state of a given host.- Parameters:
host- The name of the host to be considered.state- The name of the state to be popped.
-
hostVariableDeclare
public static final void hostVariableDeclare(java.lang.String variable)
Declare a new user variable associated to hosts.- Parameters:
variable-
-
hostVariableSet
public static final void hostVariableSet(java.lang.String host, java.lang.String variable, double value)Set the value of a variable of a host.- Parameters:
host-variable-value-
-
vmVariableDeclare
public static final void vmVariableDeclare(java.lang.String variable)
Declare a new user variable associated to VMs.- Parameters:
variable-
-
vmVariableSet
public static final void vmVariableSet(java.lang.String vm, java.lang.String variable, double value)Set the value of a variable of a VM.- Parameters:
vm-variable-value-
-
-