Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

thread-cpu-usage

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thread-cpu-usage

Get CPU usage per thread

  • 0.2.0-alpha.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
196K
decreased by-0.27%
Maintainers
0
Weekly downloads
 
Created
Source

thread-cpu-usage

The package exports a single function: threadCpuUsage.

The function method returns the user and system CPU time usage of the current thread, in an object with properties user and system, whose values are microsecond values (millionth of a second).

The result of a previous call to threadCpuUsage can be passed as the argument to the function, to get a diff reading.

The API is purposely designed to be identical to Node.js' process.cpuUsage([previousValue]) API.

Install

npm install thread-cpu-usage

License

Apache 2.0

FAQs

Package last updated on 09 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc