Class Trace
Trace
Defined in: Hermes.js.
Constructor Attributes | Constructor Name and Description |
---|---|
<private> |
Trace(oConstructor, sMethodName, oTracer)
Trace is the class that manage all the info to be used in Tracer.
|
Field Attributes | Field Name and Description |
---|---|
oConstructor is the oConstructor to trace
|
|
oTracer is the reference to the Tracer
|
|
sIndentString is the number of spaces to indent functions.
|
|
sMethodName is the name of the oConstructor
|
Method Attributes | Method Name and Description |
---|---|
formatArguments(aArgs)
formatArguments returns the arguments passed to the function as a string
|
|
getIndentation returns the indentation
|
|
getMethodNameIndentedAndParams return the string with method name and formatted arguments.
|
|
getProfile(nStart, oResult)
getProfile return the string with method name, result and time that tooks the execution
|
|
wrap()
wrap is the method to wrap all the methods to trace
|
Class Detail
<private>
Trace(oConstructor, sMethodName, oTracer)
Trace is the class that manage all the info to be used in Tracer.
- Parameters:
- oConstructor
- sMethodName
- oTracer
Field Detail
oConstructor
oConstructor is the oConstructor to trace
oTracer
oTracer is the reference to the Tracer
sIndentString
sIndentString is the number of spaces to indent functions.
Missing modifycation - maybe in the next version -
sMethodName
sMethodName is the name of the oConstructor
Method Detail
formatArguments(aArgs)
formatArguments returns the arguments passed to the function as a string
- Parameters:
- aArgs
- Returns:
- {String}
{String}
getIndentation()
getIndentation returns the indentation
- Returns:
- {String}
{String}
getMethodNameIndentedAndParams(aArgs)
getMethodNameIndentedAndParams return the string with method name and formatted arguments.
- Parameters:
- aArgs
- Returns:
- {String}
{String}
getProfile(nStart, oResult)
getProfile return the string with method name, result and time that tooks the execution
- Parameters:
- nStart
- oResult
- Returns:
- {String}
wrap()
wrap is the method to wrap all the methods to trace