small changes in the metrics

This commit is contained in:
Matthias Jung
2015-04-09 10:07:30 +02:00
parent 836bacc76f
commit 268e839472
2 changed files with 3 additions and 1 deletions

View File

@@ -235,8 +235,9 @@ def accesses_per_activate(connection):
result = cursor.fetchone()
return round(result[0]*1.0/number_of_activates(connection),1)
@metric
def timeInPowerStates(connection):
totalTimeAllBanks = getTraceLength(connection)*getNumberOfBanks(connection)
totalTimeAllBanks = getTraceLength(connection)#*getNumberOfBanks(connection)
cursor = connection.cursor()
result = []

View File

@@ -21,6 +21,7 @@ public:
void schedule(gp* payload) override;
std::pair<Command, tlm::tlm_generic_payload*> getNextRequest(Bank bank) override;
void NotifyBeginRDWR();
void NotifyBeginRD();
private:
std::vector<gp*> buffer;