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;
--- 3112 unchanged lines hidden (view full) ---
3121sum(Temp val)
3122{
3123 return NodePtr(new SumNode<std::plus<Result> >(val));
3124}
3125
3126/** Dump all statistics data to the registered outputs */
3127void dump();
3128void reset();
3129void enable();
3130bool enabled();
3131
3132/**
3133 * Register a callback that should be called whenever statistics are
3134 * reset
3135 */
3136void registerResetCallback(Callback *cb);
3137
3138std::list<Info *> &statsList();
3139
3140} // namespace Stats
3141
3142#endif // __BASE_STATISTICS_HH__
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;
--- 3112 unchanged lines hidden (view full) ---
3121sum(Temp val)
3122{
3123 return NodePtr(new SumNode<std::plus<Result> >(val));
3124}
3125
3126/** Dump all statistics data to the registered outputs */
3127void dump();
3128void reset();
3129void enable();
3130bool enabled();
3131
3132/**
3133 * Register a callback that should be called whenever statistics are
3134 * reset
3135 */
3136void registerResetCallback(Callback *cb);
3137
3138std::list<Info *> &statsList();
3139
3140} // namespace Stats
3141
3142#endif // __BASE_STATISTICS_HH__