goog.debug.Trace_
Classgoog.debug.Trace_.EventType
EnumEvent type supported by tracer … more
.MAX_TRACE_SIZE
{number
}Maximum size of the trace before we discard events
.addComment(comment, opt_type, opt_timeStamp)
Adds a comment to the trace. Makes it possible to see when a specific event happened in relation to the traces.
comment
{string
}
opt_type
{?string
=}
opt_timeStamp
{?number
=}
.clearCurrentTrace()
Clears the current trace
.getFormattedTrace()
Returns a formatted string for the current trace
string
}
.getTotalVarAlloc()
Returns the total number of allocations since the GC stats were reset. Only works in IE.
number
}
.initCurrentTrace(defaultThreshold)
Initializes and resets the current trace
defaultThreshold
{number
}
.now()
Returns the current time. Done through a wrapper function so it can be overridden by application code. Gmail has an ActiveX extension that provides higher precision timing info.
number
}
.reset(defaultThreshold)
Resets the trace.
defaultThreshold
{number
}
.setGcTracer(gcTracer)
Sets the ActiveX object that can be used to get GC tracing in IE6.
gcTracer
{Object
}
.setStartTime(startTime)
Add the ability to explicitly set the start time. This is useful for example for measuring initial load time where you can set a variable as soon as the main page of the app is loaded and then later call this function when the Tracer code has been loaded.
startTime
{number
}
.startTracer(comment, opt_type)
Starts a tracer
comment
{string
}
opt_type
{string
=}
number
}
.stopTracer(id, opt_silenceThreshold)
Stops a tracer
id
{number
|undefined
|null
}
opt_silenceThreshold
{number
=}
number
}
.toString()
Returns a formatted string that describes the thread trace.
string
}