File indexing completed on 2024-05-19 05:44:25
0001 /* 0002 SPDX-FileCopyrightText: 2016-2017 Milian Wolff <mail@milianw.de> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef SUMMARYDATA_H 0008 #define SUMMARYDATA_H 0009 0010 #include "../allocationdata.h" 0011 #include "../filterparameters.h" 0012 #include "../suppressions.h" 0013 0014 #include <QMetaType> 0015 #include <QString> 0016 #include <QVector> 0017 0018 struct SummaryData 0019 { 0020 SummaryData() = default; 0021 SummaryData(const QString& debuggee, const AllocationData& cost, int64_t totalTime, 0022 const FilterParameters& filterParameters, int64_t peakTime, int64_t peakRSS, int64_t totalSystemMemory, 0023 bool fromAttached, int64_t totalLeakedSuppressed, QVector<Suppression> suppressions) 0024 : debuggee(debuggee) 0025 , cost(cost) 0026 , totalLeakedSuppressed(totalLeakedSuppressed) 0027 , totalTime(totalTime) 0028 , filterParameters(filterParameters) 0029 , peakTime(peakTime) 0030 , peakRSS(peakRSS) 0031 , totalSystemMemory(totalSystemMemory) 0032 , fromAttached(fromAttached) 0033 , suppressions(std::move(suppressions)) 0034 { 0035 } 0036 QString debuggee; 0037 AllocationData cost; 0038 int64_t totalLeakedSuppressed = 0; 0039 int64_t totalTime = 0; 0040 FilterParameters filterParameters; 0041 int64_t peakTime = 0; 0042 int64_t peakRSS = 0; 0043 int64_t totalSystemMemory = 0; 0044 bool fromAttached = false; 0045 QVector<Suppression> suppressions; 0046 }; 0047 Q_DECLARE_METATYPE(SummaryData) 0048 0049 #endif // SUMMARYDATA_H