| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 struct ResourceUsageData { | 5 struct ResourceUsageData { |
| 6 bool reports_v8_stats = false; | 6 bool reports_v8_stats = false; |
| 7 uint64 v8_bytes_allocated = 0; | 7 uint64 v8_bytes_allocated = 0; |
| 8 uint64 v8_bytes_used = 0; | 8 uint64 v8_bytes_used = 0; |
| 9 | |
| 10 // TODO(amistry): Consider using this for the renderer process. | |
| 11 }; | 9 }; |
| 12 | 10 |
| 13 interface ResourceUsageReporter { | 11 interface ResourceUsageReporter { |
| 14 // NOTE: For utility processes, this only reports V8 memory used by the proxy | 12 // NOTE: For utility processes, this only reports V8 memory used by the proxy |
| 15 // resolver. | 13 // resolver. |
| 16 GetUsageData() => (ResourceUsageData data); | 14 GetUsageData() => (ResourceUsageData data); |
| 17 }; | 15 }; |
| OLD | NEW |