diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/Partitions.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/platform/Partitions.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/Partitions.h b/chromium/third_party/WebKit/Source/platform/Partitions.h index ab6b128592d..e1dd2eddd4c 100644 --- a/chromium/third_party/WebKit/Source/platform/Partitions.h +++ b/chromium/third_party/WebKit/Source/platform/Partitions.h @@ -44,9 +44,14 @@ public: ALWAYS_INLINE static PartitionRoot* getObjectModelPartition() { return m_objectModelAllocator.root(); } ALWAYS_INLINE static PartitionRoot* getRenderingPartition() { return m_renderingAllocator.root(); } + static size_t currentDOMMemoryUsage() + { + return m_objectModelAllocator.root()->totalSizeOfCommittedPages; + } + private: - static PartitionAllocator<3072> m_objectModelAllocator; - static PartitionAllocator<1024> m_renderingAllocator; + static SizeSpecificPartitionAllocator<3072> m_objectModelAllocator; + static SizeSpecificPartitionAllocator<1024> m_renderingAllocator; }; } // namespace WebCore |