base.cc (7897:d9e8b1fd1a9f) base.cc (7914:eee5bb0fb8ea)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

250{
251 using namespace Stats;
252
253 numCycles
254 .name(name() + ".numCycles")
255 .desc("number of cpu cycles simulated")
256 ;
257
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

250{
251 using namespace Stats;
252
253 numCycles
254 .name(name() + ".numCycles")
255 .desc("number of cpu cycles simulated")
256 ;
257
258 numWorkItemsStarted
259 .name(name() + ".numWorkItemsStarted")
260 .desc("number of work items this cpu started")
261 ;
262
263 numWorkItemsCompleted
264 .name(name() + ".numWorkItemsCompleted")
265 .desc("number of work items this cpu completed")
266 ;
267
258 int size = threadContexts.size();
259 if (size > 1) {
260 for (int i = 0; i < size; ++i) {
261 stringstream namestr;
262 ccprintf(namestr, "%s.ctx%d", name(), i);
263 threadContexts[i]->regStats(namestr.str());
264 }
265 } else if (size == 1)

--- 208 unchanged lines hidden ---
268 int size = threadContexts.size();
269 if (size > 1) {
270 for (int i = 0; i < size; ++i) {
271 stringstream namestr;
272 ccprintf(namestr, "%s.ctx%d", name(), i);
273 threadContexts[i]->regStats(namestr.str());
274 }
275 } else if (size == 1)

--- 208 unchanged lines hidden ---