THT is in early Beta. We welcome contributors & feedback.

Perf.stop

Perf.stop()

Description

Stop the most recently started Perf task.

This means that nested tasks are possible, like this:

Perf.start('mainTask');

doSomething();

if (doSubTask) {
    Perf.start('subTask');
    doSomethingElse();
    Perf.stop();
}

Perf.stop();