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

Perf.start

Perf.start(taskId, detail = '')

Description

Start a Perf task, with an optional detail String.

function createThumb(imageFileName) {

    Perf.start('createThumbnail', 'file: ' ~ imageFileName);

    // ... modify pixels ...

    Perf.stop();
}