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

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: ALexei comments 2 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 void LogRendererCrash(content::RenderProcessHost* host, 419 void LogRendererCrash(content::RenderProcessHost* host,
420 base::TerminationStatus status, 420 base::TerminationStatus status,
421 int exit_code); 421 int exit_code);
422 422
423 // Records a renderer process hang. 423 // Records a renderer process hang.
424 void LogRendererHang(); 424 void LogRendererHang();
425 425
426 // Records that the browser was shut down cleanly. 426 // Records that the browser was shut down cleanly.
427 void LogCleanShutdown(); 427 void LogCleanShutdown();
428 428
429 // Records a GPU process crash.
430 void LogGpuCrash();
431
429 // Returns reference to ChildProcessStats corresponding to |data|. 432 // Returns reference to ChildProcessStats corresponding to |data|.
430 ChildProcessStats& GetChildProcessStats( 433 ChildProcessStats& GetChildProcessStats(
431 const content::ChildProcessData& data); 434 const content::ChildProcessData& data);
432 435
433 // Saves plugin-related updates from the in-object buffer to Local State 436 // Saves plugin-related updates from the in-object buffer to Local State
434 // for retrieval next time we send a Profile log (generally next launch). 437 // for retrieval next time we send a Profile log (generally next launch).
435 void RecordPluginChanges(PrefService* pref); 438 void RecordPluginChanges(PrefService* pref);
436 439
437 // Records state that should be periodically saved, like uptime and 440 // Records state that should be periodically saved, like uptime and
438 // buffered plugin stability statistics. 441 // buffered plugin stability statistics.
(...skipping 145 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