The goog.debug.GcDiagnostics_ Class

.install()

Install the GcDiagnostics tool.

.start()

Starts recording garbage collection information. If a trace is already in progress, it is ended.

.stop()

Stops recording garbage collection information. Logs details on the garbage collections that occurred between start and stop. If tracers are in use, adds comments where each GC occurs.