From 62fe41608857c8b3a7decca00a3c46be67765ae2 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Fri, 3 Jun 2016 21:29:54 +0200 Subject: [PATCH] Move MergedAllocation struct to heaptrack_print. It's only being used there. --- accumulatedtracedata.h | 12 ------------ heaptrack_print.cpp | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/accumulatedtracedata.h b/accumulatedtracedata.h index 9f315f3..6418375 100644 --- a/accumulatedtracedata.h +++ b/accumulatedtracedata.h @@ -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 traces; - // location - IpIndex ipIndex; -}; - - -/** * Information for a single call to an allocation function. */ struct AllocationInfo diff --git a/heaptrack_print.cpp b/heaptrack_print.cpp index 230812a..7bc412f 100644 --- a/heaptrack_print.cpp +++ b/heaptrack_print.cpp @@ -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 traces; + // location + IpIndex ipIndex; +}; + class formatBytes { public: -- 2.7.4