statistics.hh (6129:05405c5b8c16) statistics.hh (6130:0fb959250892)
1/*
2 * Copyright (c) 2003-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;

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

59#include <string>
60#include <vector>
61
62#include "base/cast.hh"
63#include "base/cprintf.hh"
64#include "base/intmath.hh"
65#include "base/refcnt.hh"
66#include "base/str.hh"
1/*
2 * Copyright (c) 2003-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;

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

59#include <string>
60#include <vector>
61
62#include "base/cast.hh"
63#include "base/cprintf.hh"
64#include "base/intmath.hh"
65#include "base/refcnt.hh"
66#include "base/str.hh"
67#include "base/stats/flags.hh"
68#include "base/stats/info.hh"
69#include "base/stats/types.hh"
70#include "base/stats/visit.hh"
71#include "sim/host.hh"
72
73class Callback;
74
75/** The current simulated tick. */

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

241 * @param name The new name.
242 * @return A reference to this stat.
243 */
244 Derived &
245 name(const std::string &name)
246 {
247 Info *info = this->info();
248 info->setName(name);
67#include "base/stats/info.hh"
68#include "base/stats/types.hh"
69#include "base/stats/visit.hh"
70#include "sim/host.hh"
71
72class Callback;
73
74/** The current simulated tick. */

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

240 * @param name The new name.
241 * @return A reference to this stat.
242 */
243 Derived &
244 name(const std::string &name)
245 {
246 Info *info = this->info();
247 info->setName(name);
249 info->flags |= print;
248 info->flags.set(print);
250 return this->self();
251 }
252 const std::string &name() const { return this->info()->name; }
253
254 /**
255 * Set the description and marks this stat to print at the end of
256 * simulation.
257 * @param desc The new description.

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

277 }
278
279 /**
280 * Set the flags and marks this stat to print at the end of simulation.
281 * @param f The new flags.
282 * @return A reference to this stat.
283 */
284 Derived &
249 return this->self();
250 }
251 const std::string &name() const { return this->info()->name; }
252
253 /**
254 * Set the description and marks this stat to print at the end of
255 * simulation.
256 * @param desc The new description.

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

276 }
277
278 /**
279 * Set the flags and marks this stat to print at the end of simulation.
280 * @param f The new flags.
281 * @return A reference to this stat.
282 */
283 Derived &
285 flags(StatFlags _flags)
284 flags(Flags _flags)
286 {
285 {
287 this->info()->flags |= _flags;
286 this->info()->flags.set(_flags);
288 return this->self();
289 }
290
291 /**
292 * Set the prerequisite stat and marks this stat to print at the end of
293 * simulation.
294 * @param prereq The prerequisite stat.
295 * @return A reference to this stat.

--- 2460 unchanged lines hidden ---
287 return this->self();
288 }
289
290 /**
291 * Set the prerequisite stat and marks this stat to print at the end of
292 * simulation.
293 * @param prereq The prerequisite stat.
294 * @return A reference to this stat.

--- 2460 unchanged lines hidden ---