Move MergedAllocation struct to heaptrack_print.
authorMilian Wolff <mail@milianw.de>
Fri, 3 Jun 2016 19:29:54 +0000 (21:29 +0200)
committerMilian Wolff <mail@milianw.de>
Fri, 3 Jun 2016 19:29:54 +0000 (21:29 +0200)
It's only being used there.

accumulatedtracedata.h
heaptrack_print.cpp

index 9f315f3..6418375 100644 (file)
@@ -67,18 +67,6 @@ struct Allocation : public AllocationData
 };
 
 /**
- * Merged allocation information by instruction pointer outside of alloc funcs
- */
-struct MergedAllocation : public AllocationData
-{
-    // individual backtraces
-    std::vector<Allocation> traces;
-    // location
-    IpIndex ipIndex;
-};
-
-
-/**
  * Information for a single call to an allocation function.
  */
 struct AllocationInfo
index 230812a..7bc412f 100644 (file)
@@ -37,6 +37,17 @@ namespace po = boost::program_options;
 
 namespace {
 
+/**
+ * Merged allocation information by instruction pointer outside of alloc funcs
+ */
+struct MergedAllocation : public AllocationData
+{
+    // individual backtraces
+    std::vector<Allocation> traces;
+    // location
+    IpIndex ipIndex;
+};
+
 class formatBytes
 {
 public: