Fix to calculate metrics with new config files.
This commit is contained in:
@@ -462,7 +462,9 @@ def time_in_SREFB_percent(connection):
|
||||
@metric
|
||||
def time_in_power_down_states_in_ns(connection):
|
||||
mcconfig = MCConfig(connection)
|
||||
bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
#bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
bankwiseLogic = "0"
|
||||
|
||||
if bankwiseLogic == "0":
|
||||
totalTimeInPDNA = time_in_PDNA_in_ns(connection)
|
||||
totalTimeInPDNP = time_in_PDNP_in_ns(connection)
|
||||
@@ -480,7 +482,9 @@ def time_in_power_down_states_in_ns(connection):
|
||||
@metric
|
||||
def time_in_power_down_states_percent(connection):
|
||||
mcconfig = MCConfig(connection)
|
||||
bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
#bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
bankwiseLogic = "0"
|
||||
|
||||
if bankwiseLogic == "0":
|
||||
totalTimeAllBanks = trace_length_in_ns(connection)
|
||||
else:
|
||||
@@ -538,7 +542,8 @@ def getMetrics(pathToTrace):
|
||||
connection = sqlite3.connect(pathToTrace)
|
||||
|
||||
mcconfig = MCConfig(connection)
|
||||
bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
#bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
bankwiseLogic = "0"
|
||||
|
||||
if bankwiseLogic == "0":
|
||||
pdnMetrics = [time_in_PDNA_in_ns, time_in_PDNA_percent, time_in_PDNP_in_ns, time_in_PDNP_percent, time_in_SREF_in_ns, time_in_SREF_percent]
|
||||
@@ -572,7 +577,8 @@ def calculateMetrics(pathToTrace, selectedMetrics=[]):
|
||||
connection = sqlite3.connect(pathToTrace)
|
||||
|
||||
mcconfig = MCConfig(connection)
|
||||
bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
#bankwiseLogic = mcconfig.getValue("BankwiseLogic")
|
||||
bankwiseLogic = "0"
|
||||
|
||||
if bankwiseLogic == "0":
|
||||
pdnMetrics = [time_in_PDNA_in_ns, time_in_PDNA_percent,
|
||||
|
||||
Reference in New Issue
Block a user