Skip to content

Commit 2622331

Browse files
author
Andy Hanson
committed
Add heap performance markers
1 parent 3b7a1a8 commit 2622331

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/compiler/checker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19223,6 +19223,8 @@ namespace ts {
1922319223

1922419224
function initializeTypeChecker() {
1922519225
// Bind all source files and propagate errors
19226+
performance.mark("heapBeforeBind");
19227+
1922619228
for (const file of host.getSourceFiles()) {
1922719229
bindSourceFile(file, compilerOptions);
1922819230
}
@@ -19272,6 +19274,8 @@ namespace ts {
1927219274
// Setup global builtins
1927319275
addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);
1927419276

19277+
performance.mark("heapAfterBind");
19278+
1927519279
getSymbolLinks(undefinedSymbol).type = undefinedWideningType;
1927619280
getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments");
1927719281
getSymbolLinks(unknownSymbol).type = unknownType;

0 commit comments

Comments
 (0)