We should have way to get statistics about fast malloc heap and purgeable memory.
Created attachment 25600 [details] patch
Comment on attachment 25600 [details] patch + size_t ReturnedBytes() const; Is that an extra space before size_t? Please consider putting these functions in global namespace with "using" for consistency with most of WTF. r=me
Sending JavaScriptCore/ChangeLog Sending JavaScriptCore/JavaScriptCore.exp Sending JavaScriptCore/wtf/FastMalloc.cpp Sending JavaScriptCore/wtf/FastMalloc.h Sending WebKit/mac/ChangeLog Sending WebKit/mac/Misc/WebCache.mm Sending WebKit/mac/Misc/WebCoreStatistics.h Sending WebKit/mac/Misc/WebCoreStatistics.mm Transmitting file data ........ Committed revision 38844.
I didn't move the functions to global namaspace since I didn't understand the reasoning.
Reopening for another patch.
Comment on attachment 25600 [details] patch Clearing old review flag.
Created attachment 25606 [details] JS GC heap statistics
Sending JavaScriptCore/ChangeLog Sending JavaScriptCore/JavaScriptCore.exp Sending JavaScriptCore/runtime/Collector.cpp Sending JavaScriptCore/runtime/Collector.h Sending WebKit/mac/ChangeLog Sending WebKit/mac/Misc/WebCoreStatistics.mm Transmitting file data ...... Committed revision 38849.
Add free size in caches.
Created attachment 25617 [details] Report free memory in central and thread caches too.
Comment on attachment 25617 [details] Report free memory in central and thread caches too. r=me if you fix up the non-TCMalloc code to avoid breaking the debug build.
Sending JavaScriptCore/ChangeLog Sending JavaScriptCore/wtf/FastMalloc.cpp Sending JavaScriptCore/wtf/FastMalloc.h Sending WebKit/mac/ChangeLog Sending WebKit/mac/Misc/WebCoreStatistics.mm Transmitting file data ..... Committed revision 38853.