stat_control.cc (8581:56f97760eadd) | stat_control.cc (8720:32e4b41c10e5) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 39 unchanged lines hidden (view full) --- 48 49#include "sim/eventq.hh" 50#include "sim/stat_control.hh" 51 52using namespace std; 53 54Stats::Formula simSeconds; 55Stats::Value simTicks; | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 39 unchanged lines hidden (view full) --- 48 49#include "sim/eventq.hh" 50#include "sim/stat_control.hh" 51 52using namespace std; 53 54Stats::Formula simSeconds; 55Stats::Value simTicks; |
56Stats::Value finalTick; |
|
56Stats::Value simFreq; 57 58namespace Stats { 59 60Time statTime(true); 61Tick startTick; 62 63struct SimTicksReset : public Callback --- 16 unchanged lines hidden (view full) --- 80} 81 82Tick 83statElapsedTicks() 84{ 85 return curTick() - startTick; 86} 87 | 57Stats::Value simFreq; 58 59namespace Stats { 60 61Time statTime(true); 62Tick startTick; 63 64struct SimTicksReset : public Callback --- 16 unchanged lines hidden (view full) --- 81} 82 83Tick 84statElapsedTicks() 85{ 86 return curTick() - startTick; 87} 88 |
89Tick 90statFinalTick() 91{ 92 return curTick(); 93} 94 |
|
88SimTicksReset simTicksReset; 89 90struct Global 91{ 92 Stats::Formula hostInstRate; 93 Stats::Formula hostTickRate; 94 Stats::Value hostMemory; 95 Stats::Value hostSeconds; --- 25 unchanged lines hidden (view full) --- 121 ; 122 123 simTicks 124 .functor(statElapsedTicks) 125 .name("sim_ticks") 126 .desc("Number of ticks simulated") 127 ; 128 | 95SimTicksReset simTicksReset; 96 97struct Global 98{ 99 Stats::Formula hostInstRate; 100 Stats::Formula hostTickRate; 101 Stats::Value hostMemory; 102 Stats::Value hostSeconds; --- 25 unchanged lines hidden (view full) --- 128 ; 129 130 simTicks 131 .functor(statElapsedTicks) 132 .name("sim_ticks") 133 .desc("Number of ticks simulated") 134 ; 135 |
136 finalTick 137 .functor(statFinalTick) 138 .name("final_tick") 139 .desc("Number of ticks from beginning of simulation \ 140(restored from checkpoints and never reset)") 141 ; 142 |
|
129 hostInstRate 130 .name("host_inst_rate") 131 .desc("Simulator instruction rate (inst/s)") 132 .precision(0) 133 .prereq(simInsts) 134 ; 135 136 hostMemory --- 69 unchanged lines hidden --- | 143 hostInstRate 144 .name("host_inst_rate") 145 .desc("Simulator instruction rate (inst/s)") 146 .precision(0) 147 .prereq(simInsts) 148 ; 149 150 hostMemory --- 69 unchanged lines hidden --- |