1// Copyright 2018 The Chromium OS 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
5syntax = "proto3";
6
7option optimize_for = LITE_RUNTIME;
8
9package metrics_event;
10
11// Content of signals emitted by Chrome (the ChromeEvent signal in the
12// MetricsEventService) and the anomaly_detector daemon (the AnomalyEvent
13// signal in the AnomalyEventService) to report events of interest for
14// measurements.
15message Event {
16  // Event types.
17  enum Type {
18    TAB_DISCARD = 0;
19    OOM_KILL = 1;   // obsolete---use OOM_KILL_BROWSER instead
20    TAB_SWITCH = 2;
21    OOM_KILL_BROWSER = 3;
22    OOM_KILL_KERNEL = 4;
23  }
24
25  // The type of the event being signaled.
26  Type type = 1;
27
28  // The time of the event (CLOCK_MONOTONIC in milliseconds).
29  int64 timestamp = 2;
30}
31