-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Report aggregate statistics for solution as well as some solution perf numbers #50267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…f numbers This change under --extendedDiagnostics aggregates the diagnostics from all projects built and reports it at the end. Apart from that it also outputs some measurements for work that happens in tsc --build like finding if projects are uptodate etc. Also removes unnecessary node count per suggestion
@typescript-bot pack this |
@@ -73,8 +77,8 @@ namespace ts { | |||
try { | |||
let performance: Performance; | |||
const { performance: nodePerformance, PerformanceObserver } = require("perf_hooks") as typeof import("perf_hooks"); | |||
if (hasRequiredAPI(nodePerformance, PerformanceObserver)) { | |||
performance = nodePerformance; | |||
if (hasRequiredAPI(nodePerformance as unknown as Performance, PerformanceObserver)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this because our reference to @types/node
is out of date? clearMeasures
was added in NodeJS v16.7.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes its because of our @types/node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason we shouldn't update our local copy of @types/node
to at least v16?
Co-authored-by: Ron Buckton <[email protected]>
Nit: Up-to-date check time time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't read the code change (which I assume is largely as before), but I like the output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, though we may want to consider updating our @types/node
definitions to at least v16.
This change under
--extendedDiagnostics
aggregates the diagnostics from all projects built and reports it at the end. Apart from that it also outputs some measurements for work that happens in tsc --build like finding if projects are uptodate etc.Also removes unnecessary node count per suggestion by @amcasey
Different work per suggestion by @rbuckton in #49285