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

Unified Diff: base/metrics/persistent_memory_allocator.h

Issue 2907543003: Support persistent system profiles. (Closed)
Patch Set: addressed review comments by asvitkine Created 3 years, 7 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
« no previous file with comments | « no previous file | base/metrics/persistent_memory_allocator.cc » ('j') | components/metrics/metrics_log.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/persistent_memory_allocator.h
diff --git a/base/metrics/persistent_memory_allocator.h b/base/metrics/persistent_memory_allocator.h
index b7e7bd08c3d20a0539e98e2ad436901378694947..79eb96d4fb8f27ad1fecd7ca7069052c6611c28b 100644
--- a/base/metrics/persistent_memory_allocator.h
+++ b/base/metrics/persistent_memory_allocator.h
@@ -494,7 +494,8 @@ class BASE_EXPORT PersistentMemoryAllocator {
// Reserve space in the memory segment of the desired |size| and |type_id|.
// A return value of zero indicates the allocation failed, otherwise the
// returned reference can be used by any process to get a real pointer via
- // the GetAsObject() or GetAsArray calls.
+ // the GetAsObject() or GetAsArray calls. The actual allocated size may be
+ // larger and will always be a multiple of 8 bytes (64 bits).
Reference Allocate(size_t size, uint32_t type_id);
// Allocate and construct an object in persistent memory. The type must have
« no previous file with comments | « no previous file | base/metrics/persistent_memory_allocator.cc » ('j') | components/metrics/metrics_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698