halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 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 | |
| 8 | #ifndef ProcStats_DEFINED |
| 9 | #define ProcStats_DEFINED |
| 10 | |
| 11 | /** |
| 12 | * ProcStats - Process Statistics Functions |
| 13 | */ |
| 14 | |
| 15 | namespace sk_tools { |
| 16 | |
| 17 | /** |
mtklein | 95553d9 | 2015-03-12 08:24:21 -0700 | [diff] [blame] | 18 | * If implemented, returns the maximum resident set size in MB. |
| 19 | * If not, returns -1. |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 20 | */ |
mtklein | afb4379 | 2014-08-19 15:55:55 -0700 | [diff] [blame] | 21 | int getMaxResidentSetSizeMB(); |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 22 | |
mtklein | 95553d9 | 2015-03-12 08:24:21 -0700 | [diff] [blame] | 23 | /** |
| 24 | * If implemented, returns the current resident set size in MB. |
| 25 | * If not, returns -1. |
| 26 | */ |
| 27 | int getCurrResidentSetSizeMB(); |
| 28 | |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 29 | } // namespace sk_tools |
| 30 | |
| 31 | #endif // ProcStats_DEFINED |