• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Chrome histogram hashes translation rules
2packet {
3  translation_table {
4    chrome_histogram {
5      hash_to_name { key: 10 value: "histogram_name1" }
6      hash_to_name { key: 20 value: "histogram_name2" }
7    }
8  }
9}
10# Known histogram hash, should be translated to a name
11packet {
12  trusted_packet_sequence_id: 1
13  timestamp: 0
14  incremental_state_cleared: true
15  track_event {
16    categories: "cat1"
17    type: 3
18    name_iid: 1
19    chrome_histogram_sample {
20      name_hash: 10
21      sample: 100
22    }
23  }
24}
25# Another known hash, should be translated to a name
26packet {
27  trusted_packet_sequence_id: 1
28  timestamp: 0
29  incremental_state_cleared: true
30  track_event {
31    categories: "cat2"
32    type: 3
33    name_iid: 2
34    chrome_histogram_sample {
35      name_hash: 20
36    }
37  }
38}
39# Unknown hash, should not be translated to any name
40packet {
41  trusted_packet_sequence_id: 1
42  timestamp: 0
43  incremental_state_cleared: true
44  track_event {
45    categories: "cat3"
46    type: 3
47    name_iid: 3
48    chrome_histogram_sample {
49      name_hash: 30
50    }
51  }
52}
53
54