mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Add heap performance markers
This commit is contained in:
parent
3b7a1a8e22
commit
2622331c9c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user