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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2828733003: Add UMA for number of outstanding requests in ResourceDispatcherHostImpl (Closed)
Patch Set: Created 3 years, 8 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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 735
736 // |max_outstanding_requests_cost_per_process_| is the upper bound on how 736 // |max_outstanding_requests_cost_per_process_| is the upper bound on how
737 // many outstanding requests can be issued per child process host. 737 // many outstanding requests can be issued per child process host.
738 // The constraint is expressed in terms of bytes (where the cost of 738 // The constraint is expressed in terms of bytes (where the cost of
739 // individual requests is given by CalculateApproximateMemoryCost). 739 // individual requests is given by CalculateApproximateMemoryCost).
740 // The total number of outstanding requests is roughly: 740 // The total number of outstanding requests is roughly:
741 // (max_outstanding_requests_cost_per_process_ / 741 // (max_outstanding_requests_cost_per_process_ /
742 // kAvgBytesPerOutstandingRequest) 742 // kAvgBytesPerOutstandingRequest)
743 int max_outstanding_requests_cost_per_process_; 743 int max_outstanding_requests_cost_per_process_;
744 744
745 // Largest number of outstanding requests seen so far across all processes.
746 int largest_outstanding_request_count_seen_;
747
748 // Largest number of outstanding requests seen so far in any single process.
749 int largest_outstanding_request_per_process_count_seen_;
750
745 // Time of the last user gesture. Stored so that we can add a load 751 // Time of the last user gesture. Stored so that we can add a load
746 // flag to requests occurring soon after a gesture to indicate they 752 // flag to requests occurring soon after a gesture to indicate they
747 // may be because of explicit user action. 753 // may be because of explicit user action.
748 base::TimeTicks last_user_gesture_time_; 754 base::TimeTicks last_user_gesture_time_;
749 755
750 ResourceDispatcherHostDelegate* delegate_; 756 ResourceDispatcherHostDelegate* delegate_;
751 757
752 LoaderDelegate* loader_delegate_; 758 LoaderDelegate* loader_delegate_;
753 759
754 bool allow_cross_origin_auth_prompt_; 760 bool allow_cross_origin_auth_prompt_;
(...skipping 15 matching lines...) Expand all
770 776
771 // Task runner for the IO thead. 777 // Task runner for the IO thead.
772 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; 778 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_;
773 779
774 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 780 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
775 }; 781 };
776 782
777 } // namespace content 783 } // namespace content
778 784
779 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 785 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698