@onerepo/plugin-performance-writer
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

This is a usable example plugin to demonstrate how to build your own telemetry and performance tracing plugin using the oneRepo plugin API and internal performance entries.

Using a PerformanceObserver, it listens for performance marks and converts them into measurements from onerepo_start_ to onerepo_end_ prefixed entries. On CLI shutdown, the measurements will be written to a file for later operation.

No metrics or information are shared anywhere outside of your local environment.

Installation

npm install --save-dev @onerepo/plugin-performance-writer

/@onerepo/plugin-performance-writer/

    Package Sidebar

    Install

    npm i @onerepo/plugin-performance-writer

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    138 kB

    Total Files

    7

    Last publish

    Collaborators

    • paularmstrong