tracer.js
No description.

File Location

/goog/debug/tracer.js

Classes

goog.debug.Trace_
Class used for singleton goog.debug.Trace. Used for timing slow points in the code. Based on the java Tracer class but optimized for javascript. See com.google.common.tracing.Tracer.
goog.debug.Trace_.Event_
Private class used to encapsulate a single event, either the start or stop of a tracer.
goog.debug.Trace_.Stat_
Class to keep track of a stat of a single tracer type. Stores the count and cumulative time.

Public Protected Private

Enumerations

Global Functions

goog.debug.Trace_.formatTime_(time) string
Return the sec.ms part of time (if time = "20:06:11.566", "11.566
Arguments:
time : number
The time in MS.
Returns: string  A formatted string as sec.ms'.
code »
goog.debug.Trace_.longToPaddedString_(v) string
Converts 'v' to a string and pads it with up to 3 spaces for improved alignment. TODO there must be a better way
Arguments:
v : number
A number.
Returns: string  A padded string.
code »
goog.debug.Trace_.now() number
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 »

Directory debug

File Reference