Skip to content

Small but usefull benching function with memory information (use the webkit gc() function that need to be activated on the command line)

License

Notifications You must be signed in to change notification settings

n8tz/v8mem-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mem benchTools

Small and usefull benching function with memory information to bench structures/class on the fly

Allow to test destuctors & find mem leaks.

Rem : the webkit gc() method is requiered to get memory deltas;
It need be activated from the command line using the following switchs :

%chrome path/exec% --enable-precise-memory-info --js-flags="--expose-gc"

or for older chrome version :

%chrome path/exec% --enable-memory-info --js-flags="--expose-gc"




Sample Example :
Samples 4 : 267ms: mem delta : 7.01Mo;
After collect : 2.67Mo
61.911554921540656 % cleaned

How to use ?

Create & destroy the tested object in the bench function, in the right context; Then see if garbage collect clean them well.

About

Small but usefull benching function with memory information (use the webkit gc() function that need to be activated on the command line)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published