libstdc++
|
00001 // -*- C++ -*- 00002 00003 // Copyright (C) 2009-2019 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 <profile/impl/profiler.h> 00035 00036 // Profiling mode namespaces. 00037 00038 /** 00039 * @namespace std::__profile 00040 * @brief GNU profile code, replaces standard behavior with profile behavior. 00041 */ 00042 namespace std _GLIBCXX_VISIBILITY(default) 00043 { 00044 namespace __profile { } 00045 } 00046 00047 /** 00048 * @namespace __gnu_profile 00049 * @brief GNU profile code for public use. 00050 */ 00051 namespace __gnu_profile 00052 { 00053 // Import all the profile versions of components in namespace std. 00054 using namespace std::__profile; 00055 } 00056 00057 00058 #endif /* _GLIBCXX_PROFILE_BASE_H */