@conga/stopwatch

1.0.6 • Public • Published

@conga/stopwatch

Installation

Install the bundle in your project directory:

$ npm install --save @conga/stopwatch

Introduction

The stopwatch provides functionality for you to profile runtime operations, by gathering microtime and memory consumption into grouped sections and events.

Just like with a real stopwatch, you can start an event, and you can log lap times for the same event. Additionally, you can group events into sections.

Each time you start or lap an event, it will create a new "period". A period logs the current memory consumption, the starting microtime of the period, the finishing microtime of the period, and the duration in microtime for this period.

The memory usage for each period is retrieved by calling process.memoryUsage.

See the documentation for more information and usage examples.

/@conga/stopwatch/

    Package Sidebar

    Install

    npm i @conga/stopwatch

    Weekly Downloads

    1

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    36.7 kB

    Total Files

    18

    Last publish

    Collaborators

    • lampjunkie
    • createvibe