stat_control.cc (7064:586b0e3a12b3) stat_control.cc (7068:08c34d3fb19d)
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;

--- 31 unchanged lines hidden (view full) ---

40#include "base/statistics.hh"
41#include "base/time.hh"
42#include "cpu/base.hh"
43#include "sim/eventq.hh"
44
45using namespace std;
46
47Stats::Formula simSeconds;
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;

--- 31 unchanged lines hidden (view full) ---

40#include "base/statistics.hh"
41#include "base/time.hh"
42#include "cpu/base.hh"
43#include "sim/eventq.hh"
44
45using namespace std;
46
47Stats::Formula simSeconds;
48Stats::Value simTicks;
49Stats::Value simFreq;
48
49namespace Stats {
50
51Time statTime(true);
52Tick startTick;
53
54struct SimTicksReset : public Callback
55{

--- 22 unchanged lines hidden (view full) ---

78
79struct Global
80{
81 Stats::Formula hostInstRate;
82 Stats::Formula hostTickRate;
83 Stats::Value hostMemory;
84 Stats::Value hostSeconds;
85
50
51namespace Stats {
52
53Time statTime(true);
54Tick startTick;
55
56struct SimTicksReset : public Callback
57{

--- 22 unchanged lines hidden (view full) ---

80
81struct Global
82{
83 Stats::Formula hostInstRate;
84 Stats::Formula hostTickRate;
85 Stats::Value hostMemory;
86 Stats::Value hostSeconds;
87
86 Stats::Value simTicks;
87 Stats::Value simInsts;
88 Stats::Value simInsts;
88 Stats::Value simFreq;
89
90 Global();
91};
92
93Global::Global()
94{
95 simInsts
96 .functor(BaseCPU::numSimulatedInstructions)

--- 101 unchanged lines hidden ---
89
90 Global();
91};
92
93Global::Global()
94{
95 simInsts
96 .functor(BaseCPU::numSimulatedInstructions)

--- 101 unchanged lines hidden ---