stat_control.hh revision 1762
12348SN/A/* 22348SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan 32348SN/A * All rights reserved. 42348SN/A * 52348SN/A * Redistribution and use in source and binary forms, with or without 62348SN/A * modification, are permitted provided that the following conditions are 72348SN/A * met: redistributions of source code must retain the above copyright 82348SN/A * notice, this list of conditions and the following disclaimer; 92348SN/A * redistributions in binary form must reproduce the above copyright 102348SN/A * notice, this list of conditions and the following disclaimer in the 112348SN/A * documentation and/or other materials provided with the distribution; 122348SN/A * neither the name of the copyright holders nor the names of its 132348SN/A * contributors may be used to endorse or promote products derived from 142348SN/A * this software without specific prior written permission. 152348SN/A * 162348SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172348SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182348SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192348SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202348SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212348SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222348SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232348SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242348SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252348SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262348SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272689Sktlim@umich.edu */ 282689Sktlim@umich.edu 292348SN/A#ifndef __SIM_STAT_CONTROL_HH__ 302325SN/A#define __SIM_STAT_CONTROL_HH__ 312325SN/A 322325SN/A#include <fstream> 332325SN/A#include <list> 342325SN/A 352325SN/Anamespace Stats { 362325SN/A 372348SN/Aenum { 382348SN/A Reset = 0x1, 392348SN/A Dump = 0x2 402348SN/A}; 412348SN/A 422348SN/Aclass Output; 432348SN/Aextern std::list<Output *> OutputList; 442348SN/A 452348SN/Avoid DumpNow(); 462348SN/Avoid SetupEvent(int flags, Tick when, Tick repeat = 0); 472348SN/A 482348SN/Avoid InitSimStats(); 492348SN/A 502348SN/A/* namespace Stats */ } 512348SN/A 522325SN/A#endif // __SIM_STAT_CONTROL_HH__ 532325SN/A