stat_control.cc (8229:78bf55f23338) | stat_control.cc (8581:56f97760eadd) |
---|---|
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; --- 161 unchanged lines hidden (view full) --- 170{ 171 private: 172 bool dump; 173 bool reset; 174 Tick repeat; 175 176 public: 177 StatEvent(bool _dump, bool _reset, Tick _repeat) | 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; --- 161 unchanged lines hidden (view full) --- 170{ 171 private: 172 bool dump; 173 bool reset; 174 Tick repeat; 175 176 public: 177 StatEvent(bool _dump, bool _reset, Tick _repeat) |
178 : Event(Stat_Event_Pri), dump(_dump), reset(_reset), repeat(_repeat) | 178 : Event(Stat_Event_Pri, AutoDelete), 179 dump(_dump), reset(_reset), repeat(_repeat) |
179 { | 180 { |
180 setFlags(AutoDelete); | |
181 } 182 183 virtual void 184 process() 185 { 186 if (dump) 187 Stats::dump(); 188 --- 17 unchanged lines hidden --- | 181 } 182 183 virtual void 184 process() 185 { 186 if (dump) 187 Stats::dump(); 188 --- 17 unchanged lines hidden --- |