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

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

Issue 291833002: [TaskManager] Change ResourceMap to figure ResourceList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.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 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 size_t gdi_handles_peak; 411 size_t gdi_handles_peak;
412 412
413 bool is_user_handles_valid; 413 bool is_user_handles_valid;
414 size_t user_handles; 414 size_t user_handles;
415 size_t user_handles_peak; 415 size_t user_handles_peak;
416 }; 416 };
417 417
418 typedef std::vector<task_manager::Resource*> ResourceList; 418 typedef std::vector<task_manager::Resource*> ResourceList;
419 typedef std::vector<scoped_refptr<task_manager::ResourceProvider> > 419 typedef std::vector<scoped_refptr<task_manager::ResourceProvider> >
420 ResourceProviderList; 420 ResourceProviderList;
421 typedef std::map<base::ProcessHandle, ResourceList*> GroupMap; 421 typedef std::map<base::ProcessHandle, ResourceList> GroupMap;
422 typedef std::map<base::ProcessHandle, base::ProcessMetrics*> MetricsMap; 422 typedef std::map<base::ProcessHandle, base::ProcessMetrics*> MetricsMap;
423 typedef std::map<task_manager::Resource*, int64> ResourceValueMap; 423 typedef std::map<task_manager::Resource*, int64> ResourceValueMap;
424 typedef std::map<task_manager::Resource*, 424 typedef std::map<task_manager::Resource*,
425 PerResourceValues> PerResourceCache; 425 PerResourceValues> PerResourceCache;
426 typedef std::map<base::ProcessHandle, PerProcessValues> PerProcessCache; 426 typedef std::map<base::ProcessHandle, PerProcessValues> PerProcessCache;
427 427
428 // This struct is used to exchange information between the io and ui threads. 428 // This struct is used to exchange information between the io and ui threads.
429 struct BytesReadParam { 429 struct BytesReadParam {
430 BytesReadParam(int origin_pid, 430 BytesReadParam(int origin_pid,
431 int child_id, 431 int child_id,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // All per-Resource values are stored here. 564 // All per-Resource values are stored here.
565 mutable PerResourceCache per_resource_cache_; 565 mutable PerResourceCache per_resource_cache_;
566 566
567 // All per-Process values are stored here. 567 // All per-Process values are stored here.
568 mutable PerProcessCache per_process_cache_; 568 mutable PerProcessCache per_process_cache_;
569 569
570 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 570 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
571 }; 571 };
572 572
573 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 573 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698