Lines Matching refs:metrics

5 #include "components/metrics/metrics_log.h"
15 #include "base/metrics/histogram.h"
16 #include "base/metrics/histogram_samples.h"
25 #include "components/metrics/metrics_hashes.h"
26 #include "components/metrics/metrics_pref_names.h"
27 #include "components/metrics/metrics_provider.h"
28 #include "components/metrics/metrics_service_client.h"
29 #include "components/metrics/proto/histogram_event.pb.h"
30 #include "components/metrics/proto/system_profile.pb.h"
31 #include "components/metrics/proto/user_action_event.pb.h"
48 namespace metrics {
57 // Returns the date at which the current metrics client ID was created as
65 return pref->GetString(metrics::prefs::kMetricsReportingEnabledTimestamp);
97 metrics::MetricsServiceClient* client,
122 registry->RegisterIntegerPref(metrics::prefs::kStabilityLaunchCount, 0);
123 registry->RegisterIntegerPref(metrics::prefs::kStabilityCrashCount, 0);
125 metrics::prefs::kStabilityIncompleteSessionEndCount, 0);
127 metrics::prefs::kStabilityBreakpadRegistrationFail, 0);
129 metrics::prefs::kStabilityBreakpadRegistrationSuccess, 0);
130 registry->RegisterIntegerPref(metrics::prefs::kStabilityDebuggerPresent, 0);
131 registry->RegisterIntegerPref(metrics::prefs::kStabilityDebuggerNotPresent,
133 registry->RegisterStringPref(metrics::prefs::kStabilitySavedSystemProfile,
135 registry->RegisterStringPref(metrics::prefs::kStabilitySavedSystemProfileHash,
141 uint64 hash = metrics::HashMetricName(value);
216 const std::vector<metrics::MetricsProvider*>& metrics_providers,
228 // sent, but that's true for all the metrics.
232 // Record recent delta for critical stability metrics. We can't wait for a
247 pref->GetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount);
248 pref->SetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount, 0);
250 pref->GetInteger(metrics::prefs::kStabilityBreakpadRegistrationSuccess);
251 pref->SetInteger(metrics::prefs::kStabilityBreakpadRegistrationSuccess, 0);
253 pref->GetInteger(metrics::prefs::kStabilityBreakpadRegistrationFail);
254 pref->SetInteger(metrics::prefs::kStabilityBreakpadRegistrationFail, 0);
256 pref->GetInteger(metrics::prefs::kStabilityDebuggerPresent);
257 pref->SetInteger(metrics::prefs::kStabilityDebuggerPresent, 0);
259 pref->GetInteger(metrics::prefs::kStabilityDebuggerNotPresent);
260 pref->SetInteger(metrics::prefs::kStabilityDebuggerNotPresent, 0);
276 const std::vector<metrics::MetricsProvider*>& metrics_providers) {
299 int launch_count = pref->GetInteger(metrics::prefs::kStabilityLaunchCount);
300 pref->SetInteger(metrics::prefs::kStabilityLaunchCount, 0);
301 int crash_count = pref->GetInteger(metrics::prefs::kStabilityCrashCount);
302 pref->SetInteger(metrics::prefs::kStabilityCrashCount, 0);
330 const std::vector<metrics::MetricsProvider*>& metrics_providers,
369 // upload time; not whether the collected metrics were all gathered from
372 // can distinguish metrics more cleanly in the future: http://crbug.com/140568
401 local_state->SetString(metrics::prefs::kStabilitySavedSystemProfile,
403 local_state->SetString(metrics::prefs::kStabilitySavedSystemProfileHash,
411 local_state->GetString(metrics::prefs::kStabilitySavedSystemProfile);
416 local_state->GetString(metrics::prefs::kStabilitySavedSystemProfileHash);
417 local_state->ClearPref(metrics::prefs::kStabilitySavedSystemProfile);
418 local_state->ClearPref(metrics::prefs::kStabilitySavedSystemProfileHash);
437 } // namespace metrics