Version: v0.5.0 - Beta.  We welcome contributors & feedback.  THanks!

Perf.stop

Perf.stop()

Description

Stop the most recently started Perf task.

This means that nested tasks are possible, like this:

// outer task
Perf.start('mainTask');

doSomething();

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

Perf.stop();