Add rotate user timing

This commit is contained in:
Surma
2019-01-23 10:11:35 -05:00
parent 3917618e4e
commit 887db675c8
2 changed files with 34 additions and 49 deletions

View File

@@ -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(