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

Unified Diff: base/trace_event/heap_profiler_allocation_register.h

Issue 1535063003: Revert of [Tracing] Adjust allocation register size for low-end devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | base/trace_event/heap_profiler_allocation_register.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/heap_profiler_allocation_register.h
diff --git a/base/trace_event/heap_profiler_allocation_register.h b/base/trace_event/heap_profiler_allocation_register.h
index 940fb5454bef3107152b42ceab95aa93567ea32d..7c4ba99cd22c05eac3000d5d2c7ec42775b28d59 100644
--- a/base/trace_event/heap_profiler_allocation_register.h
+++ b/base/trace_event/heap_profiler_allocation_register.h
@@ -60,8 +60,6 @@
};
AllocationRegister();
- explicit AllocationRegister(uint32_t num_cells);
-
~AllocationRegister();
// Inserts allocation details into the table. If the address was present
@@ -114,7 +112,7 @@
// not an option). A value of ~3M entries is large enough to handle spikes in
// the number of allocations, and modest enough to require no more than a few
// dozens of MiB of address space.
- static const uint32_t kNumCellsPerBucket = 10;
+ static const uint32_t kNumCells = kNumBuckets * 10;
// Returns a value in the range [0, kNumBuckets - 1] (inclusive).
static uint32_t Hash(void* address);
@@ -137,9 +135,6 @@
// Takes a cell that is not being used to store an entry (either by recycling
// from the free list or by taking a fresh cell) and returns its index.
CellIndex GetFreeCell();
-
- // The maximum number of cells which can be allocated.
- uint32_t const num_cells_;
// The array of cells. This array is backed by mmapped memory. Lower indices
// are accessed first, higher indices are only accessed when required. In
« no previous file with comments | « no previous file | base/trace_event/heap_profiler_allocation_register.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698