From 2622331c9c216378d03a9473719e9adfcfd3e52c Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Wed, 5 Oct 2016 07:58:03 -0700 Subject: [PATCH] Add heap performance markers --- src/compiler/checker.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 941bfdfac8b..78408e13af7 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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;