Skip to content

Commit 6fc4ead

Browse files
author
Andy Hanson
committed
Add heap performance markers
1 parent 2a06b98 commit 6fc4ead

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler/checker.ts

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

1921719217
function initializeTypeChecker() {
1921819218
// Bind all source files and propagate errors
19219+
performance.mark("heapBeforeBind");
19220+
1921919221
for (const file of host.getSourceFiles()) {
1922019222
bindSourceFile(file, compilerOptions);
1922119223
}
@@ -19265,6 +19267,8 @@ namespace ts {
1926519267
// Setup global builtins
1926619268
addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);
1926719269

19270+
performance.mark("heapAfterBind");
19271+
1926819272
getSymbolLinks(undefinedSymbol).type = undefinedWideningType;
1926919273
getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments");
1927019274
getSymbolLinks(unknownSymbol).type = unknownType;

0 commit comments

Comments
 (0)