| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ | |
| 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 #include <stdint.h> | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 // Memory usage statistics send periodically to the browser process to report | |
| 14 // in UMA histograms if the GPU process crashes. | |
| 15 // Note: we use uint64_t instead of size_t for byte count because this struct | |
| 16 // is sent over IPC which could span 32 & 64 bit processes. | |
| 17 struct GPUMemoryUmaStats { | |
| 18 GPUMemoryUmaStats() | |
| 19 : bytes_allocated_current(0), | |
| 20 bytes_allocated_max(0), | |
| 21 context_group_count(0) { | |
| 22 } | |
| 23 | |
| 24 // The number of bytes currently allocated. | |
| 25 uint64_t bytes_allocated_current; | |
| 26 | |
| 27 // The maximum number of bytes ever allocated at once. | |
| 28 uint64_t bytes_allocated_max; | |
| 29 | |
| 30 // The number of context groups. | |
| 31 uint32_t context_group_count; | |
| 32 }; | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ | |
| OLD | NEW |