Skip to content

Commit 4ca311a

Browse files
author
Andy Hanson
committed
Add heap performance markers
1 parent 232de0b commit 4ca311a

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
@@ -19220,6 +19220,8 @@ namespace ts {
1922019220

1922119221
function initializeTypeChecker() {
1922219222
// Bind all source files and propagate errors
19223+
performance.mark("heapBeforeBind");
19224+
1922319225
for (const file of host.getSourceFiles()) {
1922419226
bindSourceFile(file, compilerOptions);
1922519227
}
@@ -19269,6 +19271,8 @@ namespace ts {
1926919271
// Setup global builtins
1927019272
addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);
1927119273

19274+
performance.mark("heapAfterBind");
19275+
1927219276
getSymbolLinks(undefinedSymbol).type = undefinedWideningType;
1927319277
getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments");
1927419278
getSymbolLinks(unknownSymbol).type = unknownType;

0 commit comments

Comments
 (0)