Home | History | Annotate | Download | only in base

Lines Matching defs:memory

21 // The StatsTable uses a shared memory segment that is laid out as follows
52 // At the shared-memory level, we have a lock. This lock protects the
53 // shared-memory table only, and is used when we create new counters (e.g.
55 // data from the table does not require any locking at the shared memory
65 // In order for external viewers to be able to read our shared memory,
101 // shared memory segment. Use this class to keep the data structure
105 // Various header information contained in the memory mapped segment.
152 void InitializeTable(void* memory, int size, int max_counters,
155 // Initializes our in-memory pointers into a pre-created StatsTable.
156 void ComputeMappedPointers(void* memory);
177 void* memory = priv->shared_memory_.memory();
179 TableHeader* header = static_cast<TableHeader*>(memory);
184 priv->InitializeTable(memory, size, max_counters, max_threads);
187 priv->ComputeMappedPointers(memory);
192 void StatsTablePrivate::InitializeTable(void* memory, int size,
196 memset(memory, 0, size);
199 TableHeader* header = static_cast<TableHeader*>(memory);
206 void StatsTablePrivate::ComputeMappedPointers(void* memory) {
207 char* data = static_cast<char*>(memory);
273 // Cleanup our shared memory.
286 // Registering a thread requires that we lock the shared memory
358 // Loop through the shared memory and count the threads that are active.
449 // To add a counter to the shared memory, we need the
450 // shared memory lock.
465 // now add to our in-memory cache