OSDN Git Service

2012-02-21 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / profile / base.h
1 // -*- C++ -*-
2
3 // Copyright (C) 2009, 2010 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library.  This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
9 // any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING3.  If not see
18 // <http://www.gnu.org/licenses/>.
19
20 /** @file profile/base.h
21  *  @brief Sequential helper functions.
22  *  This file is a GNU profile extension to the Standard C++ Library.
23  */
24
25 // Written by Lixia Liu
26
27 #ifndef _GLIBCXX_PROFILE_BASE_H
28 #define _GLIBCXX_PROFILE_BASE_H 1
29
30 #include <functional>
31 #include <profile/impl/profiler.h>
32
33 // Profiling mode namespaces.
34
35 /**
36  * @namespace std::__profile
37  * @brief GNU profile code, replaces standard behavior with profile behavior.
38  */
39 namespace std _GLIBCXX_VISIBILITY(default) 
40
41   namespace __profile { } 
42 }
43
44 /**
45  * @namespace __gnu_profile
46  * @brief GNU profile code for public use.
47  */
48 namespace __gnu_profile
49 {
50   // Import all the profile versions of components in namespace std.
51   using namespace std::__profile;
52 }
53
54
55 #endif /* _GLIBCXX_PROFILE_BASE_H */