Skip to content

micho/underscore.profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Underscore profile

Benchmark your functions.

Usage

Wrap your functions with _.profile and call them normally.

your_function = _.profile("Your Function Description", your_function);

Whenever you want to see results, you can call:

_.profileResults();

It will give you something like this:

Thread.render: Called 6 times. Avg: 23 ms. Max: 46 ms. Total: 0.141 s.

Attributions

Made by Pablo Villalba (@micho) for Teambox

About

Profiling utility method for underscore.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published