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

Side by Side Diff: content/common/gpu/gpu_memory_uma_stats.h

Issue 1823723002: Move establish_channel_params.{cc|h} to content/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « content/common/gpu/gpu_channel_unittest.cc ('k') | content/content_common.gypi » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h>
9 10
10 namespace content { 11 namespace content {
11 12
12 // Memory usage statistics send periodically to the browser process to report 13 // Memory usage statistics send periodically to the browser process to report
13 // in UMA histograms if the GPU process crashes. 14 // in UMA histograms if the GPU process crashes.
14 // Note: we use uint64_t instead of size_t for byte count because this struct 15 // Note: we use uint64_t instead of size_t for byte count because this struct
15 // is sent over IPC which could span 32 & 64 bit processes. 16 // is sent over IPC which could span 32 & 64 bit processes.
16 struct GPUMemoryUmaStats { 17 struct GPUMemoryUmaStats {
17 GPUMemoryUmaStats() 18 GPUMemoryUmaStats()
18 : bytes_allocated_current(0), 19 : bytes_allocated_current(0),
19 bytes_allocated_max(0), 20 bytes_allocated_max(0),
20 context_group_count(0) { 21 context_group_count(0) {
21 } 22 }
22 23
23 // The number of bytes currently allocated. 24 // The number of bytes currently allocated.
24 uint64_t bytes_allocated_current; 25 uint64_t bytes_allocated_current;
25 26
26 // The maximum number of bytes ever allocated at once. 27 // The maximum number of bytes ever allocated at once.
27 uint64_t bytes_allocated_max; 28 uint64_t bytes_allocated_max;
28 29
29 // The number of context groups. 30 // The number of context groups.
30 uint32_t context_group_count; 31 uint32_t context_group_count;
31 }; 32 };
32 33
33 } // namespace content 34 } // namespace content
34 35
35 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ 36 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_unittest.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698