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

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

Issue 1081323003: Convert renderer JS memory usage reporting to use Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@utility-process-report-js-memory
Patch Set: Rebase and fix tests. Created 5 years, 7 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
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // don't spend unneeded time updating, unless we have a real need to. 274 // don't spend unneeded time updating, unless we have a real need to.
275 void StartListening(); 275 void StartListening();
276 void StopListening(); 276 void StopListening();
277 277
278 void Clear(); // Removes all items. 278 void Clear(); // Removes all items.
279 279
280 // Sends OnModelChanged() to all observers to inform them of significant 280 // Sends OnModelChanged() to all observers to inform them of significant
281 // changes to the model. 281 // changes to the model.
282 void ModelChanged(); 282 void ModelChanged();
283 283
284 // Updates the values for all rows. 284 // Updates the values for all rows.
285 void Refresh(); 285 void Refresh();
286 286
287 void NotifyResourceTypeStats( 287 void NotifyResourceTypeStats(
288 base::ProcessId renderer_id, 288 base::ProcessId renderer_id,
289 const blink::WebCache::ResourceTypeStats& stats); 289 const blink::WebCache::ResourceTypeStats& stats);
290 290
291 void NotifyVideoMemoryUsageStats( 291 void NotifyVideoMemoryUsageStats(
292 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats); 292 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats);
293 293
294 void NotifyV8HeapStats(base::ProcessId renderer_id,
295 size_t v8_memory_allocated,
296 size_t v8_memory_used);
297
298 void NotifyBytesRead(const net::URLRequest& request, int bytes_read); 294 void NotifyBytesRead(const net::URLRequest& request, int bytes_read);
299 295
300 void RegisterOnDataReadyCallback(const base::Closure& callback); 296 void RegisterOnDataReadyCallback(const base::Closure& callback);
301 297
302 void NotifyDataReady(); 298 void NotifyDataReady();
303 299
304 private: 300 private:
305 friend class base::RefCountedThreadSafe<TaskManagerModel>; 301 friend class base::RefCountedThreadSafe<TaskManagerModel>;
306 friend class TaskManagerBrowserTest; 302 friend class TaskManagerBrowserTest;
307 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, ProcessesVsTaskManager); 303 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, ProcessesVsTaskManager);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 // All per-Resource values are stored here. 536 // All per-Resource values are stored here.
541 mutable PerResourceCache per_resource_cache_; 537 mutable PerResourceCache per_resource_cache_;
542 538
543 // All per-Process values are stored here. 539 // All per-Process values are stored here.
544 mutable PerProcessCache per_process_cache_; 540 mutable PerProcessCache per_process_cache_;
545 541
546 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 542 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
547 }; 543 };
548 544
549 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 545 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/resource_provider.h ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698