Skip to content

Instantly share code, notes, and snippets.

@6174
Created July 30, 2013 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 6174/6112440 to your computer and use it in GitHub Desktop.
Save 6174/6112440 to your computer and use it in GitHub Desktop.
查看chrome内存!
console.memory
//MemoryInfo {jsHeapSizeLimit: 793000000, usedJSHeapSize: 10000000, totalJSHeapSize: 29400000}
profile('a')
//Profile 'a' started.
//undefined
profileEnd('a')
//Profile 'a' finished.
//undefined
console.profiles
//[
//ScriptProfile
//head: ScriptProfileNode
//idleTime: 10787.999999999556
//title: "a"
//uid: 1
//__proto__: ScriptProfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment