Page 1 of 1

cef memory stat

PostPosted: Thu Sep 22, 2016 7:11 am
by krunt
I've integrated cef in game engine, need a windows-only solution to capture memory consumption
of libcef.dll as a whole. I investigated that on windows release x64 - experimental shim
in base/allocator/allocator_shim.h is working, but it does not intercept VirtualAlloc*.
I think about replacing HeapAlloc,VirtualAlloc import entries for libcef.dll after its load, like:
HMODULE mod = LoadLibrary("libcef.dll");
ReplaceAllocationFunctions(mod);
Any plans to include base::allocator::InsertAllocatorDispatch() in cef api? What about VirtualAlloc*
and third party library allocations?

Thanks for suggestions