goog.testing.PerformanceTable
Classgoog.testing.PerformanceTable(root, opt_timer, opt_precision)
A UI widget that runs performance tests and displays the results.
root
{Element
}
opt_timer
{goog.testing.PerformanceTimer
=}
opt_precision
{number
=}
.getTimer()
goog.testing.PerformanceTimer
}
.recordResults(results, opt_desc)
Record a performance timer results object to the performance table. See {@code goog.testing.PerformanceTimer} for details of the format of this object.
results
{Object
}
opt_desc
{string
=}
.reportError(reason)
Report an error in the table.
reason
{*}
.run(fn, opt_desc)
Run the given function with the performance timer, and show the results.
fn
{Function
}
opt_desc
{string
=}
.runTask(task, opt_desc)
Run the given task with the performance timer, and show the results.
task
{goog.testing.PerformanceTimer.Task
}
opt_desc
{string
=}