blob: 344b304ba3d6335376ff82385499017dfa877af7 [file] [log] [blame]
halcanary0d154ee2014-08-11 11:33:51 -07001/*
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
8#ifndef ProcStats_DEFINED
9#define ProcStats_DEFINED
10
11/**
12 * ProcStats - Process Statistics Functions
13 */
14
15namespace sk_tools {
16
17/**
mtklein95553d92015-03-12 08:24:21 -070018 * If implemented, returns the maximum resident set size in MB.
19 * If not, returns -1.
halcanary0d154ee2014-08-11 11:33:51 -070020 */
mtkleinafb43792014-08-19 15:55:55 -070021int getMaxResidentSetSizeMB();
halcanary0d154ee2014-08-11 11:33:51 -070022
mtklein95553d92015-03-12 08:24:21 -070023/**
24 * If implemented, returns the current resident set size in MB.
25 * If not, returns -1.
26 */
27int getCurrResidentSetSizeMB();
28
halcanary0d154ee2014-08-11 11:33:51 -070029} // namespace sk_tools
30
31#endif // ProcStats_DEFINED