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

Side by Side Diff: chrome/browser/task_manager/task_manager.h

Issue 319953002: Task Manager: Remove dead FPS code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
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 CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 base::string16 GetResourcePrivateMemory(int index) const; 173 base::string16 GetResourcePrivateMemory(int index) const;
174 base::string16 GetResourceSharedMemory(int index) const; 174 base::string16 GetResourceSharedMemory(int index) const;
175 base::string16 GetResourcePhysicalMemory(int index) const; 175 base::string16 GetResourcePhysicalMemory(int index) const;
176 base::string16 GetResourceProcessId(int index) const; 176 base::string16 GetResourceProcessId(int index) const;
177 base::string16 GetResourceGDIHandles(int index) const; 177 base::string16 GetResourceGDIHandles(int index) const;
178 base::string16 GetResourceUSERHandles(int index) const; 178 base::string16 GetResourceUSERHandles(int index) const;
179 base::string16 GetResourceWebCoreImageCacheSize(int index) const; 179 base::string16 GetResourceWebCoreImageCacheSize(int index) const;
180 base::string16 GetResourceWebCoreScriptsCacheSize(int index) const; 180 base::string16 GetResourceWebCoreScriptsCacheSize(int index) const;
181 base::string16 GetResourceWebCoreCSSCacheSize(int index) const; 181 base::string16 GetResourceWebCoreCSSCacheSize(int index) const;
182 base::string16 GetResourceVideoMemory(int index) const; 182 base::string16 GetResourceVideoMemory(int index) const;
183 base::string16 GetResourceFPS(int index) const;
184 base::string16 GetResourceSqliteMemoryUsed(int index) const; 183 base::string16 GetResourceSqliteMemoryUsed(int index) const;
185 base::string16 GetResourceIdleWakeupsPerSecond(int index) const; 184 base::string16 GetResourceIdleWakeupsPerSecond(int index) const;
186 base::string16 GetResourceGoatsTeleported(int index) const; 185 base::string16 GetResourceGoatsTeleported(int index) const;
187 base::string16 GetResourceV8MemoryAllocatedSize(int index) const; 186 base::string16 GetResourceV8MemoryAllocatedSize(int index) const;
188 187
189 // Gets the private memory (in bytes) that should be displayed for the passed 188 // Gets the private memory (in bytes) that should be displayed for the passed
190 // resource index. Caches the result since this calculation can take time on 189 // resource index. Caches the result since this calculation can take time on
191 // some platforms. 190 // some platforms.
192 bool GetPrivateMemory(int index, size_t* result) const; 191 bool GetPrivateMemory(int index, size_t* result) const;
193 192
(...skipping 15 matching lines...) Expand all
209 // Gets the statuses of webkit. Return false if the resource for the given row 208 // Gets the statuses of webkit. Return false if the resource for the given row
210 // isn't a renderer. 209 // isn't a renderer.
211 bool GetWebCoreCacheStats(int index, 210 bool GetWebCoreCacheStats(int index,
212 blink::WebCache::ResourceTypeStats* result) const; 211 blink::WebCache::ResourceTypeStats* result) const;
213 212
214 // Gets the GPU memory allocated of the given page. 213 // Gets the GPU memory allocated of the given page.
215 bool GetVideoMemory(int index, 214 bool GetVideoMemory(int index,
216 size_t* video_memory, 215 size_t* video_memory,
217 bool* has_duplicates) const; 216 bool* has_duplicates) const;
218 217
219 // Gets the fps of the given page. Return false if the resource for the given
220 // row isn't a renderer.
221 bool GetFPS(int index, float* result) const;
222
223 // Gets the sqlite memory (in byte). Return false if the resource for the 218 // Gets the sqlite memory (in byte). Return false if the resource for the
224 // given row doesn't report information. 219 // given row doesn't report information.
225 bool GetSqliteMemoryUsedBytes(int index, size_t* result) const; 220 bool GetSqliteMemoryUsedBytes(int index, size_t* result) const;
226 221
227 // Gets the amount of memory allocated for javascript. Returns false if the 222 // Gets the amount of memory allocated for javascript. Returns false if the
228 // resource for the given row isn't a renderer. 223 // resource for the given row isn't a renderer.
229 bool GetV8Memory(int index, size_t* result) const; 224 bool GetV8Memory(int index, size_t* result) const;
230 225
231 // Gets the amount of memory used for javascript. Returns false if the 226 // Gets the amount of memory used for javascript. Returns false if the
232 // resource for the given row isn't a renderer. 227 // resource for the given row isn't a renderer.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // changes to the model. 294 // changes to the model.
300 void ModelChanged(); 295 void ModelChanged();
301 296
302 // Updates the values for all rows. 297 // Updates the values for all rows.
303 void Refresh(); 298 void Refresh();
304 299
305 void NotifyResourceTypeStats( 300 void NotifyResourceTypeStats(
306 base::ProcessId renderer_id, 301 base::ProcessId renderer_id,
307 const blink::WebCache::ResourceTypeStats& stats); 302 const blink::WebCache::ResourceTypeStats& stats);
308 303
309 void NotifyFPS(base::ProcessId renderer_id,
310 int routing_id,
311 float fps);
312
313 void NotifyVideoMemoryUsageStats( 304 void NotifyVideoMemoryUsageStats(
314 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats); 305 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats);
315 306
316 void NotifyV8HeapStats(base::ProcessId renderer_id, 307 void NotifyV8HeapStats(base::ProcessId renderer_id,
317 size_t v8_memory_allocated, 308 size_t v8_memory_allocated,
318 size_t v8_memory_used); 309 size_t v8_memory_used);
319 310
320 void NotifyBytesRead(const net::URLRequest& request, int bytes_read); 311 void NotifyBytesRead(const net::URLRequest& request, int bytes_read);
321 312
322 void RegisterOnDataReadyCallback(const base::Closure& callback); 313 void RegisterOnDataReadyCallback(const base::Closure& callback);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 353
363 bool is_process_id_valid; 354 bool is_process_id_valid;
364 base::ProcessId process_id; 355 base::ProcessId process_id;
365 356
366 bool is_goats_teleported_valid; 357 bool is_goats_teleported_valid;
367 int goats_teleported; 358 int goats_teleported;
368 359
369 bool is_webcore_stats_valid; 360 bool is_webcore_stats_valid;
370 blink::WebCache::ResourceTypeStats webcore_stats; 361 blink::WebCache::ResourceTypeStats webcore_stats;
371 362
372 bool is_fps_valid;
373 float fps;
374
375 bool is_sqlite_memory_bytes_valid; 363 bool is_sqlite_memory_bytes_valid;
376 size_t sqlite_memory_bytes; 364 size_t sqlite_memory_bytes;
377 365
378 bool is_v8_memory_valid; 366 bool is_v8_memory_valid;
379 size_t v8_memory_allocated; 367 size_t v8_memory_allocated;
380 size_t v8_memory_used; 368 size_t v8_memory_used;
381 }; 369 };
382 370
383 // Values cached per process. Values are validated on demand. The is_XXX 371 // Values cached per process. Values are validated on demand. The is_XXX
384 // members indicate if a value is valid. 372 // members indicate if a value is valid.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // All per-Resource values are stored here. 552 // All per-Resource values are stored here.
565 mutable PerResourceCache per_resource_cache_; 553 mutable PerResourceCache per_resource_cache_;
566 554
567 // All per-Process values are stored here. 555 // All per-Process values are stored here.
568 mutable PerProcessCache per_process_cache_; 556 mutable PerProcessCache per_process_cache_;
569 557
570 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 558 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
571 }; 559 };
572 560
573 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 561 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/resource_provider.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698