| CARVIEW |
mrdoob is using GitHub to share code with you!
GitHub is more than just a place to share code. It's a place to keep tabs on your favorite developers and projects, easily contribute fixes and new features, and visualize what's going on inside your codebase!
Free for open source
- Source
- Commits
- Network
- Pull Requests (0)
- Issues (0)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files.
| name | |
|---|---|
| No matching files | |
Jump to Line
| name | age | message | |
|---|---|---|---|
| |
build/ | Tue Nov 16 05:06:13 -0800 2010 | Now using Closure Compiler (~20bytes) [mrdoob] |
| |
src/ | Mon Oct 11 04:52:02 -0700 2010 | * Increased zIndex from 100 to 1001 as per Eli ... [mrdoob] |
| |
utils/ | Tue Nov 16 05:06:13 -0800 2010 | Now using Closure Compiler (~20bytes) [mrdoob] |
| |
LICENSE | Thu Apr 08 05:09:32 -0700 2010 | Testing [mrdoob] |
| |
README.md | Tue Nov 16 05:06:13 -0800 2010 | Now using Closure Compiler (~20bytes) [mrdoob] |
Stats.js
Javascript Performance Monitor
This class provides a simple info box that will help you monitor your code performance.
- FPS Frames rendered in the last second. The higher the number the better.
- MS Milliseconds needed to render a frame. The lower the number the better.
- MEM Mbytes of memory allocated. Make sure it doesn't keep incrementing. (Webkit-based browsers only)
Screenshots
Usage
var stats = new Stats();
// Align top-left
stats.domElement.style.position = 'absolute';
stats.domElement.style.left = '0px';
stats.domElement.style.top = '0px';
parentElement.appendChild( stats.domElement );
setInterval( function () {
stats.update();
}, 1000 / 60 );
Enable MEM
-
Chrome
- Linux:
/opt/google/chrome/google-chrome --enable-memory-info - Windows:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --enable-memory-info - MacOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-memory-info
- Linux:
-
Safari
- MacOS: Open
~/Library/Preferences/com.apple.Safari.plistfile for editing, and add & set enabled a boolean preference WebKitMemoryInfoEnabled (pic)
- MacOS: Open
Bookmarklet
Albeit theorically not as accurate the widget can also be easily inserted to any site using the bookmarklet. Follow the instructions.
Change Log
2010 09 21 - r5 (3.800 kb)
- Different color per mode.
- Added MEM mode. (Webkit-based browsers only)
- Force text left aligned.
2010 06 11 - r4 (2.235 kb)
- Added MS mode.
2010 05 12 - r3 (1.241 kb)
- Switched to module pattern code style.
- Removed
position = 'absolute'.
2010 03 01 - r2 (2.177 kb)
- Simplified.
2010 02 21 - r1
- Accurate FPS calculation. (thx Spite!)
2009 08 09 - r0
- Base code.
- © 2011 GitHub Inc. All rights reserved.
- Terms of Service
- Privacy
- Security
Keyboard Shortcuts (see all)
Site wide shortcuts
- s
- Focus site search
- ?
- Bring up this help dialog
Commit list
- j
- Move selected down
- k
- Move selected up
- t
- Open tree
- p
- Open parent
- c or o or enter
- Open commit
Pull request list
- j
- Move selected down
- k
- Move selected up
- o or enter
- Open issue
Issues
- j
- Move selected down
- k
- Move selected up
- x
- Toggle select target
- o or enter
- Open issue
- I
- Mark selected as read
- U
- Mark selected as unread
- e
- Close selected
- y
- Remove selected from view
- c
- Create issue
- l
- Create label
- i
- Back to inbox
- u
- Back to issues
- /
- Focus issues search
Network Graph
- ← or h
- Scroll left
- → or l
- Scroll right
- ↑ or k
- Scroll up
- ↓ or j
- Scroll down
- t
- Toggle visibility of head labels
- shift ← or shift h
- Scroll all the way left
- shift → or shift l
- Scroll all the way right
- shift ↑ or shift k
- Scroll all the way up
- shift ↓ or shift j
- Scroll all the way down
Source Code Browsing
- t
- Activates the file finder
- l
- Jump to line