Lines Matching refs:allocator
40 // Constructs the data manager. The allocator must live longer than any
43 PersistentMemoryAllocator* allocator);
56 // don't have to also keep their own pointer to the appropriate allocator.
77 // Weak-pointer to the allocator used by the sparse histograms.
80 // Iterator within the allocator for finding sample records.
127 // don't have to also keep their own pointer to the appropriate allocator.
178 // Iterator used for fetching persistent histograms from an allocator.
183 // Constructs an iterator on a given |allocator|, starting at the beginning.
184 // The allocator must live beyond the lifetime of the iterator.
185 explicit Iterator(PersistentHistogramAllocator* allocator);
197 // Weak-pointer to histogram allocator being iterated over.
208 // Allocator object of which it takes ownership.
213 // Direct access to underlying memory allocator. If the segment is shared
232 // to where the top-level histogram data may be found in this allocator.
255 // allocator because histograms created there will already be in the SR.
269 // this allocator.
274 // for allocator of |name| (which can simply be the result of Name()). This
276 // histograms will be backed by memory provided by this very allocator.
338 // Instance has detected a corrupt allocator (recorded only once).
358 // The memory allocator that provides the actual histogram storage.
364 // A reference to the last-created histogram in the allocator, used to avoid
381 allocator using the passed-in memory |base|, |size|, and
389 // Create a global allocator using an internal block of memory of the
394 // Create a global allocator by memory-mapping a |file|. If the file does
396 // exist, the allocator will use and add to its contents, ignoring the passed
404 // Create a global allocator using a block of shared |memory| of the
405 // specified |size|. The allocator takes ownership of the shared memory
413 // Create a global allocator using a block of shared memory accessed
414 // through the given |handle| and |size|. The allocator takes ownership
422 // ever one allocator for all such histograms created by a single process.
426 static void Set(std::unique_ptr<GlobalHistogramAllocator> allocator);
428 // Gets a pointer to the global histogram allocator. Returns null if none
432 // This access to the persistent allocator is only for testing; it extracts
433 // the current allocator completely. This allows easy creation of histograms
438 // Stores a pathname to which the contents of this allocator should be saved
442 // Retrieves a previously set pathname to which the contents of this allocator
455 // Creates a new global histogram allocator.
459 // Import new histograms from the global histogram allocator. It's possible