-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Include results from --extendedDiagnostics
when using the compiler API
#61229
Comments
The main gotcha is that the perf data is global (via the native performance built-in), not scoped, so doesn't lend itself to use via the APIs at all. |
@jakebailey could you please elaborate on this? A workaround I was thinking of was constructing my own report using the program from |
See:
This all is global state, backed by |
That being said, if you read the code in the second link, there is information from |
π Search Terms
extendedDiagnostics, compiler API
β Viability Checklist
β Suggestion
For users of the TypeScript compiler API, it would be extremely useful to include the performance statistics obtained when using the
--extendedDiagnostics
compiler option.From the review I've done in this codebase, it seems like this performance information is only reported when invoking
tsc
directly.π Motivating Example
"The compiler API can now report performance information when enabling the
extendedDiagnostics
compiler option"π» Use Cases
The text was updated successfully, but these errors were encountered: