diff --git a/DRAMSys/traceAnalyzer/CMakeLists.txt b/DRAMSys/traceAnalyzer/CMakeLists.txt index ace0383f..8875eeb9 100644 --- a/DRAMSys/traceAnalyzer/CMakeLists.txt +++ b/DRAMSys/traceAnalyzer/CMakeLists.txt @@ -143,11 +143,6 @@ add_executable(TraceAnalyzer businessObjects/dramTimeDependencies/configurations/configurationfactory.cpp businessObjects/dramTimeDependencies/phasedependenciestracker.cpp - businessObjects/dramTimeDependencies/dramtimedependenciesIF.cpp - businessObjects/dramTimeDependencies/DDR3TimeDependencies.cpp - businessObjects/dramTimeDependencies/dramtimedependencyfactory.cpp - businessObjects/phasedependenciestracker.cpp - selectmetrics.ui preferences.ui evaluationtool.ui diff --git a/DRAMSys/traceAnalyzer/businessObjects/dramTimeDependencies/deviceDependencies/dramtimedependenciesbase.h b/DRAMSys/traceAnalyzer/businessObjects/dramTimeDependencies/deviceDependencies/dramtimedependenciesbase.h index f4768c30..04f524fb 100644 --- a/DRAMSys/traceAnalyzer/businessObjects/dramTimeDependencies/deviceDependencies/dramtimedependenciesbase.h +++ b/DRAMSys/traceAnalyzer/businessObjects/dramTimeDependencies/deviceDependencies/dramtimedependenciesbase.h @@ -35,49 +35,9 @@ #pragma once -#include -#include -#include - -#include -#include -#include -#include - #include "data/tracedb.h" -#include "businessObjects/phases/phasedependency.h" - -class TimeDependency { -public: - TimeDependency() = default; - TimeDependency(size_t timeValue, QString phaseDep, DependencyType depType, - QString timeDepName, bool considerIntraRank = false) - : timeValue{timeValue}, phaseDep{phaseDep}, depType{depType}, - timeDepName{timeDepName}, considerIntraRank{considerIntraRank} {} - - size_t timeValue; - QString phaseDep; - DependencyType depType; - QString timeDepName; - bool considerIntraRank = false; // Used only for InterRank skip check in PhaseDependenciesTracker::mCalculateDependencies - -}; - -struct PhaseTimeDependencies { - explicit PhaseTimeDependencies(std::initializer_list d) : dependencies(d) {} - - std::vector dependencies; - size_t maxTime; -}; - - -struct QStringsComparator { - bool operator()(const QString& s1, const QString& s2); - static bool compareQStrings(const QString& s1, const QString& s2); -}; - -typedef std::map DependencyMap; - +#include "businessObjects/dramTimeDependencies/common/common.h" +#include "poolcontrollermap.h" class DRAMTimeDependenciesBase { public: @@ -88,12 +48,11 @@ public: const uint getClk() const { return tCK; } - const uint getClk() const { return clk; } - const uint getNAW() const { return nActivateWindow; }; + PoolControllerMap getPools() const; protected: - void mFilterDependencyList(std::vector& dependencyList, const std::vector& dependencyFilter) const; - void mFilterDependencyMap(DependencyMap& dependencyMap, const std::vector& dependencyFilter) const; + void mFilterDependencyList(std::vector& dependencyList, const std::vector& dependencyFilter) const; + void mFilterDependencyMap(DependencyMap& dependencyMap, const std::vector& dependencyFilter) const; uint mFindVectorMaximum(const std::vector& dependencyList) const; protected: @@ -106,5 +65,7 @@ protected: uint tCK = 0; + std::map mPools; + }; diff --git a/DRAMSys/traceAnalyzer/presentation/util/colorgenerator.cpp b/DRAMSys/traceAnalyzer/presentation/util/colorgenerator.cpp index d926a32f..c42339f5 100644 --- a/DRAMSys/traceAnalyzer/presentation/util/colorgenerator.cpp +++ b/DRAMSys/traceAnalyzer/presentation/util/colorgenerator.cpp @@ -63,6 +63,5 @@ QColor ColorGenerator::getRainbowColored(unsigned int i, ColorName color) return {0, 0, 0}; } - ColorDefault ColorGenerator::cDefault; ColorHSV15 ColorGenerator::cHSV15; diff --git a/DRAMSys/traceAnalyzer/tracefiletab.ui b/DRAMSys/traceAnalyzer/tracefiletab.ui index 8beed4a5..31e8134a 100644 --- a/DRAMSys/traceAnalyzer/tracefiletab.ui +++ b/DRAMSys/traceAnalyzer/tracefiletab.ui @@ -226,17 +226,6 @@ - - - - - - - - Calculate Dependencies - - -