base.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // -*- C++ -*-
  2. // Copyright (C) 2009-2018 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 <profile/impl/profiler.h>
  28. // Profiling mode namespaces.
  29. /**
  30. * @namespace std::__profile
  31. * @brief GNU profile code, replaces standard behavior with profile behavior.
  32. */
  33. namespace std _GLIBCXX_VISIBILITY(default)
  34. {
  35. namespace __profile { }
  36. }
  37. /**
  38. * @namespace __gnu_profile
  39. * @brief GNU profile code for public use.
  40. */
  41. namespace __gnu_profile
  42. {
  43. // Import all the profile versions of components in namespace std.
  44. using namespace std::__profile;
  45. }
  46. #endif /* _GLIBCXX_PROFILE_BASE_H */