goog.debug.Trace_ |
![]()
Adds a comment to the trace. Makes it possible to see when a specific event
happened in relation to the traces.
Arguments:
|
code » | ||||
![]()
Clears the current trace
|
code » | ||||
Returns a formatted string for the current trace
Returns: string
A formatted string that shows the timings of the current
trace.
|
code » | ||||
Gets a stat object for a particular type. The stat object is created if it
hasn't yet been.
Arguments:
Returns: goog.debug.Trace_.Stat_
The stat object.
|
code » | ||||
Returns the total number of allocations since the GC stats were reset. Only
works in IE.
Returns: number
The number of allocaitons or -1 if not supported.
|
code » | ||||
![]()
Initializes and resets the current trace
Arguments:
|
code » | ||||
![]()
Resets the trace.
Arguments:
|
code » | ||||
![]()
Sets the ActiveX object that can be used to get GC tracing in IE6.
Arguments:
|
code » | ||||
![]()
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.
Arguments:
|
code » | ||||
Starts a tracer
Arguments:
Returns: number
The identifier for the tracer that should be passed to the
the stopTracer method.
|
code » | ||||
Stops a tracer
|
code » | ||||
Returns a formatted string that describes the thread trace.
Returns: string
A formatted string.
|
code » |
![]()
Maximum size of the trace before we discard events
|
Code » | |
![]()
Total number of comments created in the trace.
|
Code » | |
![]()
Default threshold below which a tracer shouldn't be reported
|
Code » | |
A pool for goog.debug.Trace_.Event_ objects so we don't keep creating and
garbage collecting these (which is very expensive in IE6).
|
Code » | |
![]()
Events in order.
|
Code » | |
No description.
|
Code » | |
Logger for the tracer
|
Code » | |
![]()
Next id to use for the trace.
|
Code » | |
Outstanding events that have started but haven't yet ended. The keys are
numeric ids and the values are goog.debug.Trace_.Event_ objects.
|
Code » | |
![]()
Start time of the event trace
|
Code » | |
A pool for goog.debug.Trace_.Stat_ objects so we don't keep creating and
garbage collecting these (which is very expensive in IE6).
|
Code » | |
Keeps stats on different types of tracers. The keys are strings and the
values are goog.debug.Stat
|
Code » | |
![]()
Total number of traces created in the trace.
|
Code » | |
![]()
Cummulative overhead of calls to addComment
|
Code » | |
![]()
Cummulative overhead of calls to endTracer
|
Code » | |
![]()
Cummulative overhead of calls to startTracer
|
Code » |
Return the sec.ms part of time (if time = "20:06:11.566", "11.566
|
code » | |
Converts 'v' to a string and pads it with up to 3 spaces for
improved alignment. TODO there must be a better way
|
code » | |
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.
Returns: number
The current time in milliseconds.
|
code » |
![]()
Event type supported by tracer
Constants:
|
Code » |