- Notifications
You must be signed in to change notification settings - Fork0
gamedev-js/lstats.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Visualizing and monitor your performance.
Inspired bystats.js andmemory-stats.js.
- Lite (vs pstats.js)
- Support GC detection when monitor memory (vs stats.js)
- Drawing fast (vs memory-stats.js)
npm install lstats.js
letstats=newLStats(document.body,['fps','ms','mem']);functionrender(){stats.tick();requestAnimationFrame(render);}render();
NOTE: if you want to monitor memory, start Chrome with--enable-precise-memory-info
. Otherwise the results from performance.memory are bucketed and less useful. if you are usingElectron
, start the BrowserWindow with the following code:
letwin=newBrowserWindow({webPreferences:{blinkFeatures:'PreciseMemoryInfo'}});
MIT © 2017 Johnny Wu
About
Performance Monitor (Lite)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.