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);