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_ |