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

Side by Side Diff: content/public/browser/session_restore_uma.h

Issue 1136523004: [Sessions] Add detailed logging of SessionRestore events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // UMA related constants for session restore experiments and metrics.
6
7 #ifndef CONTENT_PUBLIC_BROWSER_SESSION_RESTORE_UMA_H_
8 #define CONTENT_PUBLIC_BROWSER_SESSION_RESTORE_UMA_H_
9
10 namespace content {
11
12 // Field trials.
13
14 // The name of the ongoing session restore field trial.
15 extern const char kSessionRestoreBackgroundLoading[];
16
17 // Metrics.
18
19 // Name of the session restore actions histogram.
20 extern const char kSessionRestoreActions[];
21
22 // The name of the session restore tab actions metric.
23 extern const char kSessionRestoreTabActions[];
24
25 // Name of the histogram of the number of tabs implicated in a session
26 // restore event.
27 extern const char kSessionRestoreTabCount[];
28
29 // Metric enums.
30
31 // The enumeration values stored in the kSessionRestoreActions histogram.
32 enum SessionRestoreActionsUma {
33 // Counts the total number of session restores that have occurred.
34 kSessionRestoreActionsUma_Initiated = 0,
35 // Counts the number of session restores that have been interrupted by
36 // memory pressure signals.
37 kSessionRestoreActionsUma_InterruptedByMemoryPressure = 1,
38 // The size of this enum. Must be the last entry.
39 kSessionRestoreActionsUma_Max,
40 };
41
42 // The enumeration of values stored in the kSessionRestoreTabActions histogram.
43 enum SessionRestoreTabActionsUma {
44 // Incremented for each tab created in a session restore.
45 kSessionRestoreTabActionsUma_TabCreated = 0,
46 // Incremented for each foreground tab loaded by the session restore.
47 kSessionRestoreTabActionsUma_ForegroundTabLoaded = 1,
48 // Incremented for each background tab loaded by the session restore.
49 kSessionRestoreTabActionsUma_BackgroundTabLoaded = 2,
50 // Incremented for each tab that session restore decides not to load.
51 kSessionRestoreTabActionsUma_TabLoadingDeferred = 3,
52 // Incremented for each session restore deferred tab that is subsequently
53 // loaded by user action.
54 kSessionRestoreTabActionsUma_DeferredTabLoadedByUserAction = 4,
55 // The size of this enum. Must be the last entry.
56 kSessionRestoreTabActionsUma_Max,
57 };
58
59 } // namespace content
60
61 #endif // CONTENT_PUBLIC_BROWSER_SESSION_RESTORE_UMA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698