To add a test for memory instrumentation we need to be able to retrieve the number of instrumented objects and the number of instrumented objects that were not allocated by the memory allocator. The easiest way to achieve this is to expose these data as part of response to Memory.getProcessMemoryDistribution command.
Created attachment 165799 [details] Patch
Comment on attachment 165799 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=165799&action=review > Source/WebCore/inspector/InspectorMemoryAgent.cpp:543 > + RefPtr<InspectorMemoryBlock> totalInstrumented = InspectorMemoryBlock::create().setName("TotalInstrumentedObjects"); TotalInstrumentedObjectsCount > Source/WebCore/inspector/InspectorMemoryAgent.cpp:546 > + RefPtr<InspectorMemoryBlock> incorrectlyInstrumented = InspectorMemoryBlock::create().setName("InstrumentedButNotAllocated"); InstrumentedButNotAllocatedObjectsCount
otherwise lgtm
Created attachment 165804 [details] Patch
(In reply to comment #2) > (From update of attachment 165799 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=165799&action=review > > > Source/WebCore/inspector/InspectorMemoryAgent.cpp:543 > > + RefPtr<InspectorMemoryBlock> totalInstrumented = InspectorMemoryBlock::create().setName("TotalInstrumentedObjects"); > > TotalInstrumentedObjectsCount > Done. > > Source/WebCore/inspector/InspectorMemoryAgent.cpp:546 > > + RefPtr<InspectorMemoryBlock> incorrectlyInstrumented = InspectorMemoryBlock::create().setName("InstrumentedButNotAllocated"); > > InstrumentedButNotAllocatedObjectsCount Done.
Comment on attachment 165804 [details] Patch Clearing flags on attachment: 165804 Committed r129734: <http://trac.webkit.org/changeset/129734>
All reviewed patches have been landed. Closing bug.