Code Monkey home page Code Monkey logo

process-timer's Introduction

Process monitor

Monitors the time some process runs in the computer.

A use case is for example to monitor how much time you spend waiting for package managers (like gradle) to finish it's tasks.

The application generates a csv report file, where it records each execution of the target process, with the time when it started and stopped, as well as time of execution and total time spent among all executions.

In case you stop the script and start again, it will load the last result from the report file and continue from it. In case you want to generate a new report, either specify a new report file name, or use the -n parameter.

How to install

npm install -g process-timer

How to use

process-timer <args>

Example:

process-timer -n node -r ~/node_report.csv

Available arguments:

  • -n (optional) if set, creates a new report file. If a report file already exists, it will be renamed, adding the current timestamp to the file name.
  • -r <report file name> (optional) path to the report file (including the file name).
  • -m <module name> (optional) process-timer module to use.
  • -n <process name> (optional when module param is given) name of the process to find.
  • -u <unique identifier> (optional) regex to check against the process arguments, to better identify the desired process.

Modules

process-timer comes with some integrated modules, that allows the application to be used without having to know how to uniquely identify a process. Feel free to contribute with more modules.

Available modules:

  • gradle

Example

process-timer -m gradle

process-timer's People

Contributors

douglascvas avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.