| Function Summary | |
GcDiagnostics_()Class used for singleton goog.debug.GcDiagnostics. Used to hook into the L2 ActiveX controller to profile garbage collection information in IE. Can be used in combination with tracers (goog.debug.Trace), to provide object allocation counts from within the tracers or used alone by invoking start and stop. See http://go/l2binary for the install. TODO(user): Move the L2 installer somewhere more general. | |
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.base.Tracer. | |
catchErrors(function ((Object|null)): ? logFunc, boolean= opt_cancel, ?Object= opt_target)Catches onerror events fired by windows and similar objects. | |
deepExpose(<Any Type> obj, boolean= opt_showFn) ⇒ stringCreates a string representing a given primitive or object, and for an object, all its properties and nested objects. WARNING: If an object is given, it and all its nested objects will be modified. To detect reference cycles, this method identifies objects using goog.getUid() which mutates the object. | |
enhanceError((Error|null|string) err, string= opt_message) ⇒ ?ErrorConverts an object to an Error if it's a String, adds a stacktrace if there isn't one, and optionally adds an extra message. | |
expose((Object|null|undefined) obj, boolean= opt_showFn) ⇒ stringCreates a string representing an object and all its properties. | |
exposeArray(?Array arr) ⇒ stringRecursively outputs a nested array as a string. | |
exposeException(?Object err, ?Function= opt_fn) ⇒ stringExposes an exception that has been caught by a try...catch and outputs the error with a stack trace. | |
getFunctionName(?Function fn) ⇒ stringGets a function name | |
getStacktrace(?Function= opt_fn) ⇒ stringGets the current stack trace, either starting from the caller or starting from a specified function that's currently on the call stack. | |
getStacktraceHelper_(?Function fn, ?Array visited) ⇒ stringPrivate helper for getStacktrace(). | |
getStacktraceSimple(number= opt_depth) ⇒ stringGets the current stack trace. Simple and iterative - doesn't worry about catching circular references or getting the args. | |
makeWhitespaceVisible(string string) ⇒ stringMakes whitespace visible by replacing it with printable characters. This is useful in finding diffrences between the expected and the actual output strings of a testcase. | |
normalizeErrorObject(?Object err) ⇒ ?ObjectNormalizes the error/exception object between browsers. | |
setFunctionResolver(function ((Function|null)): string resolver)Set a custom function name resolver. | |