Skip to content

brcontainer/analysis-memory-leak.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

analysis-memory-leak.js

A simple script to analyze (simple debug) memory leak in JavaScript objects or arrays

Note: This lib is an fork of JavaScript-memory-leak-checker created by @Doist

How to use:

analysisMemoryLeak.check(window);

Improvements in analysis-memory-leak.js

  • Added "use strict";
  • uniq_id to string, so can compare with === instead of ==
  • Tests for possible errors in (try/catch) obj.xLeaksChecked
  • An improvement based in @4facf33 by @spencercarnage
  • Fixed "Exceptions" that stopped the script
  • Added function analysisMemoryLeak.showExceptions(bool); for log exceptions in test

About

A simple javascript LIB to analyze (debug) memory leak.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published