From 2465f06d14468d1ea36a33a10d7c9a08ab51ebdf Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Mon, 8 Jul 2024 13:09:51 +0200 Subject: [PATCH] Minor fixes in the Trace Analyzer --- CMakePresets.json | 3 ++- src/traceAnalyzer/businessObjects/commentmodel.cpp | 2 +- src/traceAnalyzer/traceanalyzer.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index cc271d79..45e3d7e6 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -22,7 +22,8 @@ "inherits": "cmake-pedantic", "cacheVariables": { "DRAMSYS_BUILD_TESTS": "ON", - "DRAMSYS_WITH_DRAMPOWER": "ON" + "DRAMSYS_WITH_DRAMPOWER": "ON", + "DRAMSYS_BUILD_TRACE_ANALYZER": "ON" } }, { diff --git a/src/traceAnalyzer/businessObjects/commentmodel.cpp b/src/traceAnalyzer/businessObjects/commentmodel.cpp index 01fa18f8..68a14bb5 100644 --- a/src/traceAnalyzer/businessObjects/commentmodel.cpp +++ b/src/traceAnalyzer/businessObjects/commentmodel.cpp @@ -277,7 +277,7 @@ const std::vector& CommentModel::getComments() const traceTime CommentModel::getTimeFromIndex(const QModelIndex& index) const { - Q_ASSERT(index.row() > 0 && comments.size() > static_cast(index.row())); + Q_ASSERT(index.row() >= 0 && comments.size() > static_cast(index.row())); return comments[index.row()].time; } diff --git a/src/traceAnalyzer/traceanalyzer.cpp b/src/traceAnalyzer/traceanalyzer.cpp index 608a2263..c131b1a9 100644 --- a/src/traceAnalyzer/traceanalyzer.cpp +++ b/src/traceAnalyzer/traceanalyzer.cpp @@ -254,7 +254,7 @@ void TraceAnalyzer::on_actionAbout_triggered() this, QStringLiteral("DRAMSys"), QStringLiteral( - "DRAMSys4.0 is a flexible DRAM subsystem design space exploration " + "DRAMSys5.0 is a flexible DRAM subsystem design space exploration " "framework based on SystemC " "TLM-2.0. It was developed by the Microelectronic Systems "