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

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

Issue 108683003: Store gpu crashes in the systemprofileproto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extra comments Created 7 years 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 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 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Registers a field trial name and group to be used to annotate a UMA report 242 // Registers a field trial name and group to be used to annotate a UMA report
243 // with a particular Chrome configuration state. A UMA report will be 243 // with a particular Chrome configuration state. A UMA report will be
244 // annotated with this trial group if and only if all events in the report 244 // annotated with this trial group if and only if all events in the report
245 // were created after the trial is registered. Only one group name may be 245 // were created after the trial is registered. Only one group name may be
246 // registered at a time for a given trial_name. Only the last group name that 246 // registered at a time for a given trial_name. Only the last group name that
247 // is registered for a given trial name will be recorded. The values passed 247 // is registered for a given trial name will be recorded. The values passed
248 // in must not correspond to any real field trial in the code. 248 // in must not correspond to any real field trial in the code.
249 // To use this method, SyntheticTrialGroup should friend your class. 249 // To use this method, SyntheticTrialGroup should friend your class.
250 void RegisterSyntheticFieldTrial(const SyntheticTrialGroup& trial_group); 250 void RegisterSyntheticFieldTrial(const SyntheticTrialGroup& trial_group);
251 251
252 // Call when there is a crash in the GPU process.
Alexei Svitkine (slow) 2013/12/13 22:37:22 Nit: "Records a GPU process crash." Any reason th
rkaplow 2013/12/13 23:54:03 ah no, remnant from a previous version
253 void LogGpuCrash();
254
252 private: 255 private:
253 // The MetricsService has a lifecycle that is stored as a state. 256 // The MetricsService has a lifecycle that is stored as a state.
254 // See metrics_service.cc for description of this lifecycle. 257 // See metrics_service.cc for description of this lifecycle.
255 enum State { 258 enum State {
256 INITIALIZED, // Constructor was called. 259 INITIALIZED, // Constructor was called.
257 INIT_TASK_SCHEDULED, // Waiting for deferred init tasks to complete. 260 INIT_TASK_SCHEDULED, // Waiting for deferred init tasks to complete.
258 INIT_TASK_DONE, // Waiting for timer to send initial log. 261 INIT_TASK_DONE, // Waiting for timer to send initial log.
259 INITIAL_LOG_READY, // Initial log generated, and waiting for reply. 262 INITIAL_LOG_READY, // Initial log generated, and waiting for reply.
260 SENDING_OLD_LOGS, // Sending unsent logs from previous session. 263 SENDING_OLD_LOGS, // Sending unsent logs from previous session.
261 SENDING_CURRENT_LOGS, // Sending standard current logs as they acrue. 264 SENDING_CURRENT_LOGS, // Sending standard current logs as they acrue.
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 friend class extensions::ExtensionDownloader; 587 friend class extensions::ExtensionDownloader;
585 friend class extensions::ManifestFetchData; 588 friend class extensions::ManifestFetchData;
586 589
587 // Returns true if prefs::kMetricsReportingEnabled is set. 590 // Returns true if prefs::kMetricsReportingEnabled is set.
588 static bool IsMetricsReportingEnabled(); 591 static bool IsMetricsReportingEnabled();
589 592
590 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 593 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
591 }; 594 };
592 595
593 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 596 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698