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

Unified Diff: services/blamer/heap_object_types.h

Issue 2885363004: [Hacky prototype] Create a shared-memory high-performance reporting service.
Patch Set: 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
Index: services/blamer/heap_object_types.h
diff --git a/services/blamer/heap_object_types.h b/services/blamer/heap_object_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..adde5a54f295f2c23dfa2a0e4f7d77e9908a68e8
--- /dev/null
+++ b/services/blamer/heap_object_types.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_BLAMER_HEAP_OBJECT_TYPES_H_
+#define SERVICES_BLAMER_HEAP_OBJECT_TYPES_H_
+
+namespace blamer {
+
+// An enumeration of all object types allowed to be used with a
+// SharedMemoryHeap. Definitions of these objects are found in the heap_objects
+// directory.
+enum HeapObjectType : uint32_t {
+ // A special object type used to indicate freed memory that is to be reused.
+ FREED,
+
+ // A blame node object describes a blame node, its parents, its equivalences,
+ // etc. The collection of all blame nodes implicitly describes the entire
+ // tree.
+ BLAME_NODE,
+
+ // A blame data object houses actual aggregation of resource consumption data
+ // that can be attributed to a blame node and its associated tree.
+ BLAME_DATA,
+};
+
+} // namespace blamer
+
+#endif // SERVICES_BLAMER_HEAP_OBJECT_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698