xStats provides simple charts to help monitor your code performance.
- FPS Frames rendered per second. The higher the number the better.
- MS Milliseconds needed to render a frame. The lower the number the better.
- MEM Megabytes of memory used. Make sure it doesn't keep incrementing. (WebKit-based browsers only)
xStats still needs a little work to be worthy of the title "Best in Class". Please, feel free to contribute additional unit tests or documentation.
The documentation for xStats.js can be viewed here: /doc/README.md
For more information on the techniques and code behind xStats.js please check out my screencast over it.
var stats = new xStats;
document.body.appendChild(stats.element);
-
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.plist
file for editing, and checkWebKitMemoryInfoEnabled
- MacOS: Open