SystemMemoryReporter.h 669 B

1234567891011121314151617181920212223242526272829
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_SystemMemoryReporter_h_
  6. #define mozilla_SystemMemoryReporter_h_
  7. namespace mozilla {
  8. namespace SystemMemoryReporter {
  9. // This only works on Linux, but to make callers' lives easier, we stub out
  10. // empty functions on other platforms.
  11. #if defined(XP_LINUX)
  12. void
  13. Init();
  14. #else
  15. void
  16. Init()
  17. {
  18. }
  19. #endif
  20. } // namespace SystemMemoryReporter
  21. } // namespace mozilla
  22. #endif