ProcStats.h 587 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2014 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef ProcStats_DEFINED
  8. #define ProcStats_DEFINED
  9. /**
  10. * ProcStats - Process Statistics Functions
  11. */
  12. namespace sk_tools {
  13. /**
  14. * If implemented, returns the maximum resident set size in MB.
  15. * If not, returns -1.
  16. */
  17. int getMaxResidentSetSizeMB();
  18. /**
  19. * If implemented, returns the current resident set size in MB.
  20. * If not, returns -1.
  21. */
  22. int getCurrResidentSetSizeMB();
  23. } // namespace sk_tools
  24. #endif // ProcStats_DEFINED