Add heap performance markers

This commit is contained in:
Andy Hanson 2016-10-05 07:58:03 -07:00
parent 3b7a1a8e22
commit 2622331c9c

View File

@ -19223,6 +19223,8 @@ namespace ts {
function initializeTypeChecker() {
// Bind all source files and propagate errors
performance.mark("heapBeforeBind");
for (const file of host.getSourceFiles()) {
bindSourceFile(file, compilerOptions);
}
@ -19272,6 +19274,8 @@ namespace ts {
// Setup global builtins
addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);
performance.mark("heapAfterBind");
getSymbolLinks(undefinedSymbol).type = undefinedWideningType;
getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments");
getSymbolLinks(unknownSymbol).type = unknownType;