Node.js process.resourceUsage() Function Last Updated : 06 Apr, 2021 Comments Improve Suggest changes Like Article Like Report The process object is a global that provides information about, and control over, the current Node.js process. As a global, it is always available to Node.js applications without using require(). It can also be explicitly accessed using require() function. process.resourceUsage() is a new method that returns resource usage for the current process. Syntax: process.resourceUsage() Parameters: This function does not accept any parameter. Return Value: It returns the resource usage for the current process. All of these values come from the uv_getrusage call which returns a uv_rusage_t struct. Below examples illustrate the use of the process.resourceUsage() property in Node.js: Example: index.js // Node.js program to demonstrate the // process.resourceUsage() Property // Include process module const process = require('process'); // Printing process.resourceUsage() property value console.log(process.resourceUsage()); Command to run: node index.js Output: Note: The above program will compile and run by using the node filename.js command. Reference: https://nodejs.org/api/process.html#process_process_resourceusage Comment More infoAdvertise with us Next Article Node.js process.resourceUsage() Function subhammahato348 Follow Improve Article Tags : Web Technologies Node.js NodeJS-function Node.js-process-module Similar Reads Node.js process.umask() Function The process object is a global that provides information about, and control over, the current Node.js process. As a global, it is always available to Node.js applications without using require(). It can also be explicitly accessed using require() function. process.umask(mask) sets the Node.js proces 1 min read Node.js process.report.getReport([err]) Function The process.report.gerReport() is a method of process.report javascript object that helps generate a report of the currently running node.js process. Syntax: process.report.getReport([err]) Parameters: It takes an array of Error Object that represents a custom error in the javascript stack Return Va 1 min read Node.js Process Complete Reference A process object is a global object that gives information about and controls the node.js process. As it is global, it can be used in the project without importing it from any module. Table of Content Understanding Node.js ProcessesEvents and Event-driven ArchitectureExecution Models and Asynchronou 5 min read Node.js process.config Property The process.config property is an inbuilt application programming interface of the process module which is used to get the JavaScript representation of the configure options that are used to compile the current node.js code.Syntax:  process.config Return Value: This property returns an object conta 2 min read Node.js process.stderr.fd Property The process.stderr.fd is an inbuilt application programming interface of class Process within process module which is used to returns the value of underlying file descriptor of process.stderr. Syntax: const process.stderr.fdParameters: This api takes no argument as a parameter. Return Value: This ap 1 min read Node.js process.connected Property The process.connected property is an inbuilt property of the process module which is used by the child process to check if it is connected to the parent process or not. Syntax: process.connectedReturn Value: If the process was spawned from another process then the process.connected property will re 2 min read Node.js process.env Property In Node.js, the process.env property is an essential part of the runtime environment that provides access to environment variables. These variables are key-value pairs that can influence the behaviour of your Node.js application, making it easier to configure and manage different settings across dev 5 min read Node.js Process warning Event The 'warning' is an event of class Process within the process module which is emitted whenever Node.js emits a process warning. Syntax: Event: 'warning'Parameters: This event does not accept any argument as a parameter. Return Value: This event returns nothing but a callback function for further ope 2 min read Node.js process.channel Property The process.channel is an inbuilt application programming interface of class Process within the process module which is used to get the reference to the IPC channel. If no IPC channel exists, this property is undefined. Syntax: const process.channelParameters: This api takes no argument as a paramet 2 min read Node.js process.release Property The process.release property is an inbuilt application programming interface of the process module which is used to get the metadata related to current release of node.js.Syntax: process.release Return Value: This property returns an object containing the metadata of current release of nodejs. This 3 min read Like