From 0fdbe6e176591720ec3d1a40cd5f4eacbf9bc13f Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Sat, 30 Jan 2016 13:21:04 -0800 Subject: [PATCH] Profile legacy extension handlers --- tools/isobuild/compiler.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/isobuild/compiler.js b/tools/isobuild/compiler.js index 9fcf4d3d53..83187aebb4 100644 --- a/tools/isobuild/compiler.js +++ b/tools/isobuild/compiler.js @@ -565,8 +565,12 @@ api.addAssets('${relPath}', 'client').`); addAsset: addAsset }); + const handler = buildmessage.markBoundary(classification.legacyHandler); + try { - (buildmessage.markBoundary(classification.legacyHandler))(compileStep); + Profile.time(`legacy handler (.${classification.extension})`, () => { + handler(compileStep); + }); } catch (e) { e.message = e.message + " (compiling " + relPath + ")"; buildmessage.exception(e);