Profile legacy extension handlers

This commit is contained in:
David Greenspan
2016-01-30 13:21:04 -08:00
parent d3749485be
commit 0fdbe6e176

View File

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