Skip to content

Commit

Permalink
Add heap performance markers
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Hanson committed Oct 5, 2016
1 parent 2a06b98 commit 6fc4ead
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19216,6 +19216,8 @@ namespace ts {

function initializeTypeChecker() {
// Bind all source files and propagate errors
performance.mark("heapBeforeBind");

for (const file of host.getSourceFiles()) {
bindSourceFile(file, compilerOptions);
}
Expand Down Expand Up @@ -19265,6 +19267,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;
Expand Down

0 comments on commit 6fc4ead

Please sign in to comment.