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 void
hostPopState(java.lang.String host, java.lang.String state)
Pop the last value of a state of a given host.static 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.static void
hostSetState(java.lang.String host, java.lang.String state, java.lang.String value)
Set the user state to the given value.static void
hostStateDeclare(java.lang.String name)
Declare a user state that will be associated to hosts.static 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.static void
hostVariableAdd(java.lang.String host, java.lang.String variable, double value)
Add a value to a variable of a host.static 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.static void
hostVariableDeclare(java.lang.String variable)
Declare a new user variable associated to hosts.static void
hostVariableDeclareWithColor(java.lang.String variable, java.lang.String color)
Declare a new user variable associated to hosts with a color.static void
hostVariableSet(java.lang.String host, java.lang.String variable, double value)
Set the value of a variable of a host.static 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.static void
hostVariableSub(java.lang.String host, java.lang.String variable, double value)
Subtract a value from a variable of a host.static 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.static 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.static 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.static 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.static 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.static 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.static 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.static void
linkVariableAdd(java.lang.String link, java.lang.String variable, double value)
Add a value to a variable of a link.static 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.static void
linkVariableDeclare(java.lang.String variable)
Declare a new user variable associated to links.static void
linkVariableDeclareWithColor(java.lang.String variable, java.lang.String color)
Declare a new user variable associated to links with a color.static void
linkVariableSet(java.lang.String link, java.lang.String variable, double value)
Set the value of a variable of a link.static 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.static void
linkVariableSub(java.lang.String link, java.lang.String variable, double value)
Subtract a value from a variable of a link.static 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.static void
vmVariableDeclare(java.lang.String variable)
Declare a new user variable associated to VMs.static void
vmVariableSet(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
-
-
-