Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Performance Monitor (Lite)

License

NotificationsYou must be signed in to change notification settings

gamedev-js/lstats.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualizing and monitor your performance.

Inspired bystats.js andmemory-stats.js.

mbfpsms

Why

  • Lite (vs pstats.js)
  • Support GC detection when monitor memory (vs stats.js)
  • Drawing fast (vs memory-stats.js)

Install

npm install lstats.js

Usage

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'}});

License

MIT © 2017 Johnny Wu

About

Performance Monitor (Lite)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp