• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Valid interning of Compositing.Display.DrawToSwapUs.
2packet {
3  trusted_packet_sequence_id: 1
4  timestamp: 0
5  incremental_state_cleared: true
6  track_event {
7    categories: "disabled-by-default-histogram_samples"
8    type: 3
9    name_iid: 1
10    chrome_histogram_sample {
11      name_hash: 10
12      sample: 100
13      name_iid: 1
14    }
15  }
16  interned_data {
17    histogram_names {
18      iid: 1
19      name: "Compositing.Display.DrawToSwapUs"
20    }
21  }
22}
23# Valid interning of CompositorLatency.TotalLatency.
24packet {
25  trusted_packet_sequence_id: 1
26  timestamp: 0
27  incremental_state_cleared: true
28  track_event {
29    categories: "disabled-by-default-histogram_samples"
30    type: 3
31    name_iid: 1
32    chrome_histogram_sample {
33      name_hash: 20
34      sample: 200
35      name_iid: 2
36    }
37  }
38  interned_data {
39    histogram_names {
40      iid: 2
41      name: "CompositorLatency.TotalLatency"
42    }
43  }
44}
45# Both name_iid and name are set for chrome_histogram_sample: name must not
46# change.
47packet {
48  trusted_packet_sequence_id: 1
49  timestamp: 0
50  incremental_state_cleared: true
51  track_event {
52    categories: "disabled-by-default-histogram_samples"
53    type: 3
54    name_iid: 1
55    chrome_histogram_sample {
56      name: "Graphics.Smoothness.Checkerboarding.MainThreadAnimation"
57      name_hash: 30
58      sample: 300
59      name_iid: 3
60    }
61  }
62  interned_data {
63    histogram_names {
64      iid: 3
65      name: "Graphics.Smoothness.Checkerboarding.PinchZoom"
66    }
67  }
68}
69# Invalid interning of CompositorLatency.TotalLatency: wrong iid.
70packet {
71  trusted_packet_sequence_id: 1
72  timestamp: 0
73  incremental_state_cleared: true
74  track_event {
75    categories: "disabled-by-default-histogram_samples"
76    type: 3
77    name_iid: 1
78    chrome_histogram_sample {
79      name_hash: 40
80      sample: 400
81      name_iid: 4
82    }
83  }
84  interned_data {
85    histogram_names {
86      iid: 1
87      name: "CompositorLatency.TotalLatency"
88    }
89  }
90}
91# name_iid is not set for chrome_histogram_sample.
92packet {
93  trusted_packet_sequence_id: 1
94  timestamp: 0
95  incremental_state_cleared: true
96  track_event {
97    categories: "disabled-by-default-histogram_samples"
98    type: 3
99    name_iid: 1
100    chrome_histogram_sample {
101      name_hash: 50
102      sample: 500
103    }
104  }
105  interned_data {
106    histogram_names {
107      iid: 5
108      name: "CompositorLatency.TotalLatency"
109    }
110  }
111}
112# No name interning.
113packet {
114  trusted_packet_sequence_id: 1
115  timestamp: 0
116  incremental_state_cleared: true
117  track_event {
118    categories: "disabled-by-default-histogram_samples"
119    type: 3
120    name_iid: 1
121    chrome_histogram_sample {
122      name_hash: 60
123      sample: 600
124      name: "Memory.GPU.PeakMemoryUsage.PageLoad"
125    }
126  }
127}
128