Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: chrome/common/resource_usage_reporter.mojom

Issue 1081323003: Convert renderer JS memory usage reporting to use Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@utility-process-report-js-memory
Patch Set: Rebase and fix tests. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 };
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698