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

Side by Side Diff: chrome/browser/metrics/metrics_service.h

Issue 9769011: Histogram times surrounding render crashes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/metrics/metrics_service.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 // This file defines a service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
10 #pragma once 10 #pragma once
11 11
12 #include <map> 12 #include <map>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/process_util.h" 21 #include "base/process_util.h"
22 #include "chrome/browser/io_thread.h" 22 #include "chrome/browser/io_thread.h"
23 #include "chrome/common/metrics/metrics_service_base.h" 23 #include "chrome/common/metrics/metrics_service_base.h"
24 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h"
26 #include "content/public/browser/render_process_host.h"
24 #include "content/public/common/process_type.h" 27 #include "content/public/common/process_type.h"
25 #include "content/public/common/url_fetcher_delegate.h" 28 #include "content/public/common/url_fetcher_delegate.h"
26 #include "content/public/browser/notification_observer.h" 29
27 #include "content/public/browser/notification_registrar.h"
28 30
29 #if defined(OS_CHROMEOS) 31 #if defined(OS_CHROMEOS)
30 #include "chrome/browser/chromeos/external_metrics.h" 32 #include "chrome/browser/chromeos/external_metrics.h"
31 #endif 33 #endif
32 34
33 class BookmarkModel; 35 class BookmarkModel;
34 class BookmarkNode; 36 class BookmarkNode;
35 class MetricsReportingScheduler; 37 class MetricsReportingScheduler;
36 class PrefService; 38 class PrefService;
37 class Profile; 39 class Profile;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 const content::NotificationDetails& details); 264 const content::NotificationDetails& details);
263 265
264 // Reads, increments and then sets the specified integer preference. 266 // Reads, increments and then sets the specified integer preference.
265 void IncrementPrefValue(const char* path); 267 void IncrementPrefValue(const char* path);
266 268
267 // Reads, increments and then sets the specified long preference that is 269 // Reads, increments and then sets the specified long preference that is
268 // stored as a string. 270 // stored as a string.
269 void IncrementLongPrefsValue(const char* path); 271 void IncrementLongPrefsValue(const char* path);
270 272
271 // Records a renderer process crash. 273 // Records a renderer process crash.
272 void LogRendererCrash(content::RenderProcessHost* host, 274 void LogRendererCrash(
273 base::TerminationStatus status, 275 content::RenderProcessHost* host,
274 bool was_alive); 276 const content::RenderProcessHost::RendererClosedDetails& process_details);
275 277
276 // Records a renderer process hang. 278 // Records a renderer process hang.
277 void LogRendererHang(); 279 void LogRendererHang();
278 280
279 // Records that the browser was shut down cleanly. 281 // Records that the browser was shut down cleanly.
280 void LogCleanShutdown(); 282 void LogCleanShutdown();
281 283
282 // Set the value in preferences for the number of bookmarks and folders 284 // Set the value in preferences for the number of bookmarks and folders
283 // in node. The pref key for the number of bookmarks in num_bookmarks_key and 285 // in node. The pref key for the number of bookmarks in num_bookmarks_key and
284 // the pref key for number of folders in num_folders_key. 286 // the pref key for number of folders in num_folders_key.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 friend bool prerender::IsOmniboxEnabled(Profile* profile); 440 friend bool prerender::IsOmniboxEnabled(Profile* profile);
439 friend class extensions::ExtensionDownloader; 441 friend class extensions::ExtensionDownloader;
440 442
441 // Returns true if prefs::kMetricsReportingEnabled is set. 443 // Returns true if prefs::kMetricsReportingEnabled is set.
442 static bool IsMetricsReportingEnabled(); 444 static bool IsMetricsReportingEnabled();
443 445
444 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 446 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
445 }; 447 };
446 448
447 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 449 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698