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

Side by Side Diff: content/public/common/gpu_memory_stats.h

Issue 11667030: Add GPU memory usage contents browser test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove controversial functionality Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/common/gpu_memory_stats.cc » ('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_PUBLIC_COMMON_GPU_MEMORY_STATS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_
6 #define CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_ 6 #define CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_
7 7
8 // Provides access to the GPU information for the system 8 // Provides access to the GPU information for the system
9 // on which chrome is currently running. 9 // on which chrome is currently running.
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 // Set to true if this process' GPU resource count is inflated because 30 // Set to true if this process' GPU resource count is inflated because
31 // it is counting other processes' resources (e.g, the GPU process has 31 // it is counting other processes' resources (e.g, the GPU process has
32 // duplicate set to true because it is the aggregate of all processes) 32 // duplicate set to true because it is the aggregate of all processes)
33 bool has_duplicates; 33 bool has_duplicates;
34 }; 34 };
35 typedef std::map<base::ProcessId, ProcessStats> ProcessMap; 35 typedef std::map<base::ProcessId, ProcessStats> ProcessMap;
36 36
37 // A map of processes to their GPU resource consumption 37 // A map of processes to their GPU resource consumption
38 ProcessMap process_map; 38 ProcessMap process_map;
39
40 // The total amount of GPU memory allocated at the time of the request.
41 size_t bytes_allocated;
42
43 // The maximum amount of GPU memory ever allocated at once.
44 size_t bytes_allocated_historical_max;
39 }; 45 };
40 46
41 } // namespace content 47 } // namespace content
42 48
43 #endif // CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_ 49 #endif // CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/common/gpu_memory_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698