Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Unified Diff: Source/wtf/PartitionAlloc.h

Issue 1053793004: Add a UseCounter that measures the amount of memory used in PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/wtf/PartitionAlloc.h
diff --git a/Source/wtf/PartitionAlloc.h b/Source/wtf/PartitionAlloc.h
index 0153c6c9202b312cf16df8c1aa966b9d88bbaafd..bea622f0bfa0d0674d0bab0baf6072f93561c0d4 100644
--- a/Source/wtf/PartitionAlloc.h
+++ b/Source/wtf/PartitionAlloc.h
@@ -667,7 +667,10 @@ class SizeSpecificPartitionAllocator {
public:
static const size_t kMaxAllocation = N - kAllocationGranularity;
static const size_t kNumBuckets = N / kAllocationGranularity;
- void init() { partitionAllocInit(&m_partitionRoot, kNumBuckets, kMaxAllocation); }
+ void init()
+ {
+ partitionAllocInit(&m_partitionRoot, kNumBuckets, kMaxAllocation);
Chris Evans 2015/04/07 00:50:36 Nit: we no longer need this whitespace-only chance
+ }
bool shutdown() { return partitionAllocShutdown(&m_partitionRoot); }
ALWAYS_INLINE PartitionRoot* root() { return &m_partitionRoot; }
private:
@@ -677,7 +680,10 @@ private:
class PartitionAllocatorGeneric {
public:
- void init() { partitionAllocGenericInit(&m_partitionRoot); }
+ void init()
+ {
+ partitionAllocGenericInit(&m_partitionRoot);
Chris Evans 2015/04/07 00:50:36 Same nit.
+ }
bool shutdown() { return partitionAllocGenericShutdown(&m_partitionRoot); }
ALWAYS_INLINE PartitionRootGeneric* root() { return &m_partitionRoot; }
private:
« no previous file with comments | « Source/web/WebKit.cpp ('k') | Source/wtf/PartitionAlloc.cpp » ('j') | Source/wtf/Partitions.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698