base.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // -*- C++ -*-
  2. // Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. //
  4. // This file is part of the GNU ISO C++ Library. This library is free
  5. // software; you can redistribute it and/or modify it under the
  6. // terms of the GNU General Public License as published by the
  7. // Free Software Foundation; either version 3, or (at your option)
  8. // any later version.
  9. //
  10. // This library is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. // Under Section 7 of GPL version 3, you are granted additional
  15. // permissions described in the GCC Runtime Library Exception, version
  16. // 3.1, as published by the Free Software Foundation.
  17. // You should have received a copy of the GNU General Public License along
  18. // with this library; see the file COPYING3. If not see
  19. // <http://www.gnu.org/licenses/>.
  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. // Written by Lixia Liu
  25. #ifndef _GLIBCXX_PROFILE_BASE_H
  26. #define _GLIBCXX_PROFILE_BASE_H 1
  27. #include <functional>
  28. #include <profile/impl/profiler.h>
  29. // Profiling mode namespaces.
  30. /**
  31. * @namespace std::__profile
  32. * @brief GNU profile code, replaces standard behavior with profile behavior.
  33. */
  34. namespace std _GLIBCXX_VISIBILITY(default)
  35. {
  36. namespace __profile { }
  37. }
  38. /**
  39. * @namespace __gnu_profile
  40. * @brief GNU profile code for public use.
  41. */
  42. namespace __gnu_profile
  43. {
  44. // Import all the profile versions of components in namespace std.
  45. using namespace std::__profile;
  46. }
  47. #endif /* _GLIBCXX_PROFILE_BASE_H */