Skip to content

telemetry-profiler 1.0.5

Install from the command line:
Learn more about npm packages
$ npm install @oslabs-beta/telemetry-profiler@1.0.5
Install via package.json:
"@oslabs-beta/telemetry-profiler": "1.0.5"

About this version

Telemetry Profiler

Telemetry Profiler is an open-source library built on Next.js which enables developers to acquire real time performance measurements.

Install via npm

$npm install @oslabs-beta/[email protected]

Install via package.json:

"@oslabs-beta/telemetry-profiler": "1.0.0"

Features

  • Measurement of data via duration time
  • EventLoop usage metrics
  • Log history of previous runtimes
  • Custom runtime intervals for throttling to match site limits
  • Lightweight with no large required dependencies

Usage

Utilize async functions to measure performance in each interval!

const coolFunc = async (args) => {
    setTimeout(() => {
      let count = 0;
      for (let i = 0; i < 9999999; i++) {
        count++
      }
    }, 1999)
  }
  
  profiler.measure(coolFunc)

Testing input functions

Simply run "npm test" in your terminal to execute all tests!

  • jest test runner

Details


Assets

  • telemetry-profiler-1.0.5-npm.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0