Chromium Code Reviews| 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..e3086377ff457d43f51bbd0de9222ae3fb3a25c7 100644 |
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.h |
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.h |
| @@ -520,6 +520,17 @@ public: |
| void leaveStaticReferenceRegistrationDisabledScope(); |
| #endif |
| + void reportMemoryToV8(); |
| + |
| + size_t heapSize(); |
|
sof
2016/02/15 20:47:36
This declaration appears to be without a definitio
peria
2016/02/16 03:20:20
removed.
|
| + size_t allocatedObjectSize() { return m_allocatedObjectSize; } |
|
sof
2016/02/15 20:47:36
These two can be const methods.
And, if concurren
peria
2016/02/16 03:20:20
Yes and they should be, but I removed these access
sof
2016/02/16 06:32:56
If so, why is the latest patchset still using atom
|
| + size_t markedObjectSize() { return m_markedObjectSize; } |
| + |
| + void resetHeapCounters(); |
| + void increaseAllocatedObjectSize(size_t); |
| + void decreaseAllocatedObjectSize(size_t); |
| + void increaseMarkedObjectSize(size_t); |
| + |
| private: |
| enum SnapshotType { |
| HeapSnapshot, |
| @@ -678,6 +689,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; |