-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
chore: add --inspect-file-watcher for watcherService #118771
Conversation
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.
If we change DiskFileSystemProvider
to accept the native environment service you might also need to update our remote server where the provider is used.
Can I learn more about the rationale of this change? Why do we need to debug the watcher exactly?
@@ -48,6 +51,7 @@ export class DiskFileSystemProvider extends Disposable implements | |||
|
|||
constructor( | |||
private readonly logService: ILogService, | |||
private readonly envArgs?: NativeParsedArgs, |
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 would have rather expected to depend on INativeEnvironmentService
here.
When we get report of high cpu usage with file watcher, I don't have a way to get JS cpu profile to understand whats happening in the process, it would also help to identify duplicates of #3998 |
@deepak1556 well at least for when |
Thanks for the context! For the cases with constant high cpu usage and is not remote scenario, what is usual flow of debugging ? I was mainly targeting this PR for those unknown scenarios. |
@deepak1556 yeah for those cases we have no way of debugging, so we can use this change to create perf profiles I guess? |
Yep thats correct |
Refs #118613