OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_ | 5 #ifndef CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_ |
6 #define CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_ | 6 #define CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include <stddef.h> |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 // Returns an estimate of the memory usage of the renderer process. Different | 12 // Returns an estimate of the memory usage of the renderer process. Different |
13 // platforms implement this function differently, and count in different | 13 // platforms implement this function differently, and count in different |
14 // allocations. Results are not comparable across platforms. The estimate is | 14 // allocations. Results are not comparable across platforms. The estimate is |
15 // computed inside the sandbox and thus its not always accurate. | 15 // computed inside the sandbox and thus its not always accurate. |
16 size_t GetMemoryUsageKB(); | 16 size_t GetMemoryUsageKB(); |
17 | 17 |
18 } // content | 18 } // content |
19 | 19 |
20 #endif // CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_ | 20 #endif // CONTENT_CHILD_CONTENT_CHILD_HELPERS_H_ |
OLD | NEW |