Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

alex-h-strachan/fn-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview and motivation

A super simple wrapper to let you understand how many times a function is being called during an event loop tick and how much time it took to run.

Usage

// your code before
const myFn = () => {};

// your code to run the profiler
const profile = require('fn-profiler');
const myFn = profile(() => {});

// optionally
const myFn = profile(() => {}, 'Human Friendly Name', {maxConsolesPerTick: 1});

Planned improvements

  • Configurability & Output.
  • Logged output likely to change, don't count on it's format

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published