libstdc++
|
00001 // -*- C++ -*- 00002 00003 // Copyright (C) 2009, 2010 Free Software Foundation, Inc. 00004 // 00005 // This file is part of the GNU ISO C++ Library. This library is free 00006 // software; you can redistribute it and/or modify it under the 00007 // terms of the GNU General Public License as published by the 00008 // Free Software Foundation; either version 3, or (at your option) 00009 // any later version. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 00016 // Under Section 7 of GPL version 3, you are granted additional 00017 // permissions described in the GCC Runtime Library Exception, version 00018 // 3.1, as published by the Free Software Foundation. 00019 00020 // You should have received a copy of the GNU General Public License along 00021 // with this library; see the file COPYING3. If not see 00022 // <http://www.gnu.org/licenses/>. 00023 00024 /** @file profile/base.h 00025 * @brief Sequential helper functions. 00026 * This file is a GNU profile extension to the Standard C++ Library. 00027 */ 00028 00029 // Written by Lixia Liu 00030 00031 #ifndef _GLIBCXX_PROFILE_BASE_H 00032 #define _GLIBCXX_PROFILE_BASE_H 1 00033 00034 #include <functional> 00035 #include <profile/impl/profiler.h> 00036 00037 // Profiling mode namespaces. 00038 00039 /** 00040 * @namespace std::__profile 00041 * @brief GNU profile code, replaces standard behavior with profile behavior. 00042 */ 00043 namespace std _GLIBCXX_VISIBILITY(default) 00044 { 00045 namespace __profile { } 00046 } 00047 00048 /** 00049 * @namespace __gnu_profile 00050 * @brief GNU profile code for public use. 00051 */ 00052 namespace __gnu_profile 00053 { 00054 // Import all the profile versions of components in namespace std. 00055 using namespace std::__profile; 00056 } 00057 00058 00059 #endif /* _GLIBCXX_PROFILE_BASE_H */