telemetry-profiler
/
1.0.5
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 is an open-source library built on Next.js which enables developers to acquire real time performance measurements.
$npm install @oslabs-beta/[email protected]
"@oslabs-beta/telemetry-profiler": "1.0.0"
- 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
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)
Simply run "npm test" in your terminal to execute all tests!
-
jest
test runner