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

Side by Side Diff: content/renderer/service_worker/service_worker_script_context.h

Issue 706253003: ServiceWorker: Add UMA to measure execution times of onpush (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async_push_finished_2
Patch Set: Only log for successful executions Created 6 years, 1 month 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
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_script_context.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // response. 109 // response.
110 int current_request_id_; 110 int current_request_id_;
111 111
112 // Pending callbacks for GetClientDocuments(). 112 // Pending callbacks for GetClientDocuments().
113 ClientsCallbacksMap pending_clients_callbacks_; 113 ClientsCallbacksMap pending_clients_callbacks_;
114 114
115 // Capture timestamps for UMA 115 // Capture timestamps for UMA
116 std::map<int, base::TimeTicks> activate_start_timings_; 116 std::map<int, base::TimeTicks> activate_start_timings_;
117 std::map<int, base::TimeTicks> fetch_start_timings_; 117 std::map<int, base::TimeTicks> fetch_start_timings_;
118 std::map<int, base::TimeTicks> install_start_timings_; 118 std::map<int, base::TimeTicks> install_start_timings_;
119 std::map<int, base::TimeTicks> push_start_timings_;
119 120
120 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); 121 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext);
121 }; 122 };
122 123
123 } // namespace content 124 } // namespace content
124 125
125 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ 126 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_script_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698