Skip to content

Commit

Permalink
Add rotate user timing
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Jan 23, 2019
1 parent 3917618 commit 887db67
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 49 deletions.
77 changes: 29 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/codecs/processor-worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ async function rotate(
'../rotate/processor',
);

return rotate(data, opts);
performance.mark('rotate-start');
const r = rotate(data, opts);
performance.mark('rotate-end');
performance.measure('rotate', 'rotate-start', 'rotate-end');
return r;
}

async function optiPngEncode(
Expand Down

0 comments on commit 887db67

Please sign in to comment.