Added more DependencyType enumerators.

This commit is contained in:
Iron Prando da Silva
2022-02-15 09:51:21 +01:00
parent a9e3f54bd3
commit 8ad9cb05f7
3 changed files with 27 additions and 5 deletions

View File

@@ -216,11 +216,13 @@ PhaseDependenciesTracker::mCalculateDependencies(const std::shared_ptr<Configura
continue;
}
// Captures activate window dependencies
if (poolSubstrPos != -1) {
if (poolSubstrPos != -1) {
// Captures activate window dependencies
QString poolName = dep.phaseDep.left(poolSubstrPos);
// TODO - modify structures so the condition can be checked as below
// if (poolController.isDependency(poolName, otherPhase->phaseName)) {
if (otherPhase->phaseName == "ACT") {
QString poolName = dep.phaseDep.left(poolSubstrPos);
if (timeDiff == dep.timeValue) {
// Captures only the first (exactly matching time) ACT in
// the ACT window as a dependency

View File

@@ -136,12 +136,27 @@ QString PhaseDependency::dependencyTypeName(DependencyType dtype) {
case IntraBank:
return "IntraBank";
case IntraBankGroup:
return "IntraBankGroup";
case IntraRank:
return "IntraRank";
case IntraLogicalRank:
return "IntraLogicalRank";
case IntraPhysicalRank:
return "IntraPhysicalRank";
case IntraDIMMRank:
return "IntraDIMMRank";
case InterRank:
return "InterRank";
case InterDIMMRank:
return "InterDIMMRank";
default:
// TODO - maybe throw?
return "";

View File

@@ -49,8 +49,13 @@ class Phase;
enum DependencyType
{
IntraBank,
IntraBankGroup,
IntraRank,
InterRank
IntraLogicalRank,
IntraPhysicalRank,
IntraDIMMRank,
InterRank,
InterDIMMRank,
};
class PhaseDependency