Skip to content

Computes the time it takes to generate the dependency tree for a file or the entry points of an application

Notifications You must be signed in to change notification settings

mrjoelkemp/node-time-to-generate-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

time-to-generate-tree npm npm

Computes the time it takes to generate the dependency trees for all application entry points within a directory

npm install time-to-generate-tree

Usage

var timeToTrees = require('time-to-generate-tree');

timeToTrees({
  // If you want to profile all entry points to your application (optional)
  directory: 'path/to/my/js/files',
  // If you want to profile a single file (optional)
  filename: 'path/to/a/file',
  success: function(err, timeData) {

  }
});
  • You must supply either the directory or a filename

  • The returned timeData is an object where the keys are the filenames and the values are the time it took to generate the dependency trees.

  • You may pass additional options supported by get-driver-scripts to handle pulling driver scripts from a RequireJS build config or resolving aliased paths via a requirejs config.

Shell command

Prints the time data in tabular form

Requires a global install npm install -g time-to-generate-tree

time-to-generate-tree <directory>

About

Computes the time it takes to generate the dependency tree for a file or the entry points of an application

Resources

Stars

Watchers

Forks

Packages