Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / common / resource_usage_reporter.mojom
blob95732960ec0ef6171a1fd2a26493804a28804c56
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
3 // found in the LICENSE file.
5 // Mirror of blink::WebCache::ResourceTypeStat.
6 // Note: These are size_t in blink.
7 struct ResourceTypeStat {
8   uint64 count = 0;
9   uint64 size = 0;
10   uint64 live_size = 0;
11   uint64 decoded_size = 0;
14 // Blink resource cache statistics. Mirror of
15 // blink::WebCache::ResourceTypeStats.
16 struct ResourceTypeStats {
17   ResourceTypeStat images;
18   ResourceTypeStat css_style_sheets;
19   ResourceTypeStat scripts;
20   ResourceTypeStat xsl_style_sheets;
21   ResourceTypeStat fonts;
22   ResourceTypeStat other;
25 struct ResourceUsageData {
26   // V8 memory usage information.
27   // NOTE: For utility processes, this only reports V8 memory used by the proxy
28   // resolver.
29   bool reports_v8_stats = false;
30   uint64 v8_bytes_allocated = 0;
31   uint64 v8_bytes_used = 0;
33   // Blink cache information.
34   ResourceTypeStats? web_cache_stats;
37 interface ResourceUsageReporter {
38   GetUsageData() => (ResourceUsageData data);