OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium 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 | |
5 // Call stack sample data for a given profiling session. | |
6 | |
7 syntax = "proto2"; | |
8 | |
9 option optimize_for = LITE_RUNTIME; | |
10 | |
11 package metrics; | |
12 | |
13 // Next tag: 5 | |
14 message CallStackProfile { | |
15 | |
Ilya Sherman
2015/03/19 00:10:20
nit: Please omit this newline.
Mike Wittman
2015/03/19 00:56:58
Done.
| |
16 // A sample consisting of one or more callstacks with the same stack frames | |
17 // and instruction pointers. | |
18 message Sample { | |
19 // The callstack. Sample.entries[0] represents the call on the top of the | |
20 // stack. | |
21 repeated CallStackEntry entry = 1; | |
22 | |
23 // Number of times this stack signature occurs. | |
24 optional int64 count = 2; | |
25 } | |
26 | |
27 // The callstack and counts. | |
28 repeated Sample sample = 1; | |
29 | |
30 // List of module ids found in this sample. | |
31 repeated ModuleIdentifier module_id = 2; | |
32 | |
33 // Duration of this profile. | |
34 optional int32 profile_duration_ms = 3; | |
35 | |
36 // Time between samples. | |
37 optional int32 sampling_period_ms = 4; | |
38 } | |
39 | |
40 // Describes an entry in the callstack. | |
41 message CallStackEntry { | |
42 // Instruction pointer subtracted by module base. | |
43 optional uint64 address = 1; | |
44 | |
45 // Index to the module identifier in |module_ids| of CallStackProfile. | |
46 optional int32 module_id_index = 2; | |
47 } | |
48 | |
49 // Uniquely identifies a module. | |
50 message ModuleIdentifier { | |
51 // A hash that uniquely identifies a particular program version with high | |
52 // probability. This is parsed from headers of the loaded module. | |
53 // For binaries generated by GNU tools: | |
54 // Contents of the .note.gnu.build-id field. | |
55 // On Windows: | |
56 // GUID + AGE in the debug image headers of a module. | |
57 optional bytes build_id = 1; | |
58 | |
59 // MD5Sum Prefix of the module name. This is the same hashing scheme as used | |
60 // to hash UMA histogram names. | |
61 optional fixed64 name_md5_prefix = 2; | |
62 } | |
OLD | NEW |