https://github.com/micmro/requirejs-profiler
RequireJS Profiler - trace dependency tree, loading patterns and module level load timing
https://github.com/micmro/requirejs-profiler
javascript profiler requirejs
Last synced: 10 months ago
JSON representation
RequireJS Profiler - trace dependency tree, loading patterns and module level load timing
- Host: GitHub
- URL: https://github.com/micmro/requirejs-profiler
- Owner: micmro
- Created: 2014-06-26T01:48:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-01T19:41:01.000Z (almost 12 years ago)
- Last Synced: 2024-12-29T18:21:12.486Z (over 1 year ago)
- Topics: javascript, profiler, requirejs
- Language: JavaScript
- Homepage:
- Size: 145 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RequireJS Profiler
=========
Tool to profile the loading of AMD modules loaded via [RequireJS](http://requirejs.org/).
 output example")
Using the profiler
===================
###### Adding the profiler
```HTML
//load first module
require(["common"]);
```
currently there is a dependency on jQuery, but it should be easy to replace.
###### Getting results from the profiler (from the console)
```javascript
//show a table of the loading times of modules
rjsProfiler.showResult()
//show dependency tree with loading times and initially loaded modules in iFrame
rjsProfiler.printDependencyTree(true)
//show dependency tree just in console
rjsProfiler.printDependencyTree()
```