| Index: third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
|
| diff --git a/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp b/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
|
| index 2a1bb6381f54f6c960c5d1aad81788f5d5705255..40350b8fbb22711765c2809566706ddb34f37d17 100644
|
| --- a/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
|
| +++ b/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp
|
| @@ -115,4 +115,12 @@ PartitionAllocMemoryDumpProvider::~PartitionAllocMemoryDumpProvider()
|
| {
|
| }
|
|
|
| +void PartitionAllocMemoryDumpProvider::onHeapProfilingEnabled(AllocationHook* allocationHook, FreeHook* freeHook)
|
| +{
|
| + // Make PartitionAlloc call |allocationHook| and |freeHook| for every
|
| + // subsequent allocation and free (or not if the pointers are null).
|
| + PartitionAllocHooks::setAllocationHook(allocationHook);
|
| + PartitionAllocHooks::setFreeHook(freeHook);
|
| +}
|
| +
|
| } // namespace blink
|
|
|