00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/router/RouterStatistics.hpp $ 00003 // $Id: RouterStatistics.hpp 1 2011-02-25 22:11:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 /// \file 00017 /// \brief Header for the RouterStatistics class. 00018 00019 #ifndef TORC_ROUTER_ROUTERSTATISTICS_HPP 00020 #define TORC_ROUTER_ROUTERSTATISTICS_HPP 00021 00022 #include <boost/cstdint.hpp> 00023 00024 namespace torc { 00025 namespace router { 00026 00027 /// \brief Router Statistics net. 00028 /// \details The RouteNet class contains architecture specific sources and sinks. 00029 struct RouterStatistics { 00030 00031 // members 00032 00033 /// \brief Time spent routing this net. 00034 double mRouteTime; 00035 /// \brief Number of passes through the main loop routing this net. 00036 boost::uint32_t mStatLoopPasses; 00037 /// \brief Number of nodes created from expansion. 00038 boost::uint32_t mStatExpanded; 00039 00040 // constructors 00041 /// \brief Default constructor. 00042 RouterStatistics() : mRouteTime(0), mStatLoopPasses(0), mStatExpanded(0) {} 00043 }; 00044 00045 } // namespace router 00046 } // namespace torc 00047 00048 #endif // TORC_ROUTER_ROUTERSTATISTICS_HPP