This source file includes following definitions.
- RecordSessionMode
- RecordSigninUser
- RecordSwitchActiveUser
- RecordTeleportWindowType
- RecordTeleportAction
- RecordUserCount
- RecordDiscardedTab
#include "ash/multi_profile_uma.h"
#include "base/metrics/histogram.h"
namespace ash {
void MultiProfileUMA::RecordSessionMode(SessionMode action) {
UMA_HISTOGRAM_ENUMERATION("MultiProfile.SessionMode",
action,
NUM_SESSION_MODES);
}
void MultiProfileUMA::RecordSigninUser(SigninUserAction action) {
UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUserUIPath",
action,
NUM_SIGNIN_USER_ACTIONS);
}
void MultiProfileUMA::RecordSwitchActiveUser(SwitchActiveUserAction action) {
UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUserUIPath",
action,
NUM_SWITCH_ACTIVE_USER_ACTIONS);
}
void MultiProfileUMA::RecordTeleportWindowType(TeleportWindowType window_type) {
UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindowType",
window_type,
NUM_TELEPORT_WINDOW_TYPES);
}
void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) {
UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow",
action,
NUM_TELEPORT_WINDOW_ACTIONS);
}
void MultiProfileUMA::RecordUserCount(int number_of_users) {
UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSessionIncremental",
number_of_users);
}
void MultiProfileUMA::RecordDiscardedTab(int number_of_users) {
UMA_HISTOGRAM_COUNTS_100("MultiProfile.DiscardedTabsPerUser",
number_of_users);
}
}