We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
API Platform version(s) affected: Windows 10
Description
Running the code in a setInterval causes a ton of process to be create and cause lag
How to reproduce
import pidusage from "pidusage"; setInterval(() => { pidusage(process.pid, (error, stats) => { console.log(stats.cpu); }); }, 1000);
Just run this above code
Possible Solution
Just run one process all the time and check the usage and send the usage back, instead of creating multiple process to check usage.
Additional Context
Cannot provide, causes a lot of lag by creating a ton of processes in a matter of few seconds.
The text was updated successfully, but these errors were encountered:
yes its documented also don't hesitate to try #143
Sorry, something went wrong.
No branches or pull requests
API Platform version(s) affected: Windows 10
Description
Running the code in a setInterval causes a ton of process to be create and cause lag
How to reproduce
Just run this above code
Possible Solution
Just run one process all the time and check the usage and send the usage back, instead of creating multiple process to check usage.
Additional Context
Cannot provide, causes a lot of lag by creating a ton of processes in a matter of few seconds.
The text was updated successfully, but these errors were encountered: