A plugin for measuring startup time with minimal performance impact.
dist | ||
docs | ||
test | ||
ts | ||
.bithoundrc | ||
.gitignore | ||
.gitlab-ci.yml | ||
.npmignore | ||
LICENSE | ||
npmextra.json | ||
package.json | ||
README.md | ||
tslint.json |
early
minimal and fast loading plugin for startup time measuring
Availabililty
Status for master
Usage
// Put the following at the start of your module
import * as early from "early";
early.start("myModuleName");
/*
do your loading stuff
*/
early.stop().then((loadingTime:number) => { // loadingTime in milliseconds
}); // stop "early" when your module is ready