| Index: third_party/WebKit/Source/platform/heap/ThreadState.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| index d4ad238d2bfdb2a8a0e6bfa325e4ca729b3652a7..885b66d873b71857ada5e89ac651a984359bd560 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| @@ -520,6 +520,11 @@ public:
|
| void leaveStaticReferenceRegistrationDisabledScope();
|
| #endif
|
|
|
| + void resetHeapCounters();
|
| + void increaseAllocatedObjectSize(size_t);
|
| + void decreaseAllocatedObjectSize(size_t);
|
| + void increaseMarkedObjectSize(size_t);
|
| +
|
| private:
|
| enum SnapshotType {
|
| HeapSnapshot,
|
| @@ -598,6 +603,8 @@ private:
|
| void clearHeapAges();
|
| int heapIndexOfVectorHeapLeastRecentlyExpanded(int beginHeapIndex, int endHeapIndex);
|
|
|
| + void reportMemoryToV8();
|
| +
|
| // Should only be called under protection of threadAttachMutex().
|
| const Vector<OwnPtr<BlinkGCInterruptor>>& interruptors() const { return m_interruptors; }
|
|
|
| @@ -678,6 +685,11 @@ private:
|
| static const int likelyToBePromptlyFreedArraySize = (1 << 8);
|
| static const int likelyToBePromptlyFreedArrayMask = likelyToBePromptlyFreedArraySize - 1;
|
| OwnPtr<int[]> m_likelyToBePromptlyFreed;
|
| +
|
| + // Stats for heap memory of this thread.
|
| + size_t m_allocatedObjectSize;
|
| + size_t m_markedObjectSize;
|
| + size_t m_reportedMemoryToV8;
|
| };
|
|
|
| template<ThreadAffinity affinity> class ThreadStateFor;
|
|
|