From 2a5d6432852b942868e50b6c70043172bd36983a Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 5 Oct 2023 01:55:15 -0400 Subject: [PATCH] minor cleanup --- src/blt/profiling/profiler_v2.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/blt/profiling/profiler_v2.cpp b/src/blt/profiling/profiler_v2.cpp index d6d4eae..08c893d 100644 --- a/src/blt/profiling/profiler_v2.cpp +++ b/src/blt/profiling/profiler_v2.cpp @@ -202,10 +202,7 @@ namespace blt profile_t::~profile_t() { - for (auto* p : intervals) - delete p; - for (auto* p : cycle_intervals) - delete p; + blt::clearProfile(*this); } /** @@ -238,6 +235,7 @@ namespace blt profile_t profile{profile_name}; for (const auto& i : pref) profile.intervals.push_back(i.second); + blt::writeProfile(stream, profile); profiles.erase(profile_name); }