File: pageload_metrics.proto

package info (click to toggle)
chromium-browser 57.0.2987.98-1~deb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 2,637,852 kB
  • ctags: 2,544,394
  • sloc: cpp: 12,815,961; ansic: 3,676,222; python: 1,147,112; asm: 526,608; java: 523,212; xml: 286,794; perl: 92,654; sh: 86,408; objc: 73,271; makefile: 27,698; cs: 18,487; yacc: 13,031; tcl: 12,957; pascal: 4,875; ml: 4,716; lex: 3,904; sql: 3,862; ruby: 1,982; lisp: 1,508; php: 1,368; exp: 404; awk: 325; csh: 117; jsp: 39; sed: 37
file content (75 lines) | stat: -rw-r--r-- 2,576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto2";

option optimize_for = LITE_RUNTIME;

import "client_config.proto";

package data_reduction_proxy;

// Request message to record metrics for one or more pageloads.
message RecordPageloadMetricsRequest {
  // The pageload metrics to record.
  repeated PageloadMetrics pageloads = 1;
  // Time metrics were sent.
  optional Timestamp metrics_sent_time = 2;
}

// Metrics for a single pageload.
message PageloadMetrics {
  reserved 3;

  // The possible effective connection type values.
  // See //net/nqe/effective_connection_type.h for the detailed description of
  // each of the enum values.
  enum EffectiveConnectionType {
    EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0;
    EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1;
    EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2;
    EFFECTIVE_CONNECTION_TYPE_2G = 3;
    EFFECTIVE_CONNECTION_TYPE_3G = 4;
    EFFECTIVE_CONNECTION_TYPE_4G = 5;
  };

  // The session key used to load the page.
  optional string session_key = 1;
  // The time at which the first request of the pageload was made, according to
  // the client's clock.
  optional Timestamp first_request_time = 2;
  // The URL of the main page request.
  optional string first_request_url = 4;
  // The URL of the last request.
  optional string last_request_url = 5;

  // Time to first contentful paint.
  optional Duration time_to_first_contentful_paint = 6;
  // Time to first image paint.
  optional Duration time_to_first_image_paint = 7;
  // Time to first byte.
  optional Duration time_to_first_byte = 8;
  // Time to onLoad event.
  optional Duration page_load_time = 9;

  // The sum of original-content-length values, over resources that were not
  // loaded from browser cache.
  optional int32 original_page_size_bytes = 10;
  // The sum of (compressed) content-length, over resources that were not loaded
  // from browser cache.
  optional int32 compressed_page_size_bytes = 11;

  // The effective connection type at the start of the navigation.
  optional EffectiveConnectionType effective_connection_type = 12;

  // The amount of time the parser was blocked by loading script.
  optional Duration parse_blocked_on_script_load_duration = 13;

  // Time until parsing finished.
  optional Duration parse_stop = 14;

  // Time to first meaningful paint. This measure is unstable and will change
  // over time.
  optional Duration experimental_time_to_first_meaningful_paint = 15;
}