Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Call stack sample data for a given profiling session. | 5 // Call stack sample data for a given profiling session. |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 10 option java_outer_classname = "CallStackProfileProtos"; | 10 option java_outer_classname = "CallStackProfileProtos"; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 | 25 |
| 26 // A sample consisting of one or more callstacks with the same stack frames | 26 // A sample consisting of one or more callstacks with the same stack frames |
| 27 // and instruction pointers. | 27 // and instruction pointers. |
| 28 message Sample { | 28 message Sample { |
| 29 // The callstack. Sample.entries[0] represents the call on the top of the | 29 // The callstack. Sample.entries[0] represents the call on the top of the |
| 30 // stack. | 30 // stack. |
| 31 repeated Entry entry = 1; | 31 repeated Entry entry = 1; |
| 32 | 32 |
| 33 // Number of times this stack signature occurs. | 33 // Number of times this stack signature occurs. |
| 34 optional int64 count = 2; | 34 optional int64 count = 2; |
| 35 | |
| 36 // This bit-field provide information about the current phase of the system | |
| 37 // such as whether it is in startup, general operation, or shutdown. This | |
| 38 // field is not present if it is unchanged from the previous Sample. | |
| 39 optional fixed32 process_phases = 3; | |
|
Mike Wittman
2016/10/24 22:28:14
The individual phases and activities should be exp
bcwhite
2016/10/25 14:45:23
As I understand it, this will require the constant
Mike Wittman
2016/10/25 17:24:22
The interpretation of the phases/activities is par
bcwhite
2016/10/25 21:10:42
I'll work on it.
| |
| 40 | |
| 41 // This bit-field provide information about current activities of the system | |
| 42 // such as whether it is (for example) writing out profile information or | |
| 43 // uploading metrics. This field is not present if it is unchanged from the | |
| 44 // previous Sample. | |
| 45 optional fixed32 current_activities = 4; | |
| 35 } | 46 } |
| 36 | 47 |
| 37 // Uniquely identifies a module. | 48 // Uniquely identifies a module. |
| 38 message ModuleIdentifier { | 49 message ModuleIdentifier { |
| 39 // A hash that uniquely identifies a particular program version with high | 50 // A hash that uniquely identifies a particular program version with high |
| 40 // probability. This is parsed from headers of the loaded module. | 51 // probability. This is parsed from headers of the loaded module. |
| 41 // For binaries generated by GNU tools: | 52 // For binaries generated by GNU tools: |
| 42 // Contents of the .note.gnu.build-id field. | 53 // Contents of the .note.gnu.build-id field. |
| 43 // On Windows: | 54 // On Windows: |
| 44 // GUID + AGE in the debug image headers of a module. | 55 // GUID + AGE in the debug image headers of a module. |
| 45 optional string build_id = 1; | 56 optional string build_id = 1; |
| 46 | 57 |
| 47 // MD5Sum Prefix of the module name. This is the same hashing scheme as used | 58 // MD5Sum Prefix of the module name. This is the same hashing scheme as used |
| 48 // to hash UMA histogram names. | 59 // to hash UMA histogram names. |
| 49 optional fixed64 name_md5_prefix = 2; | 60 optional fixed64 name_md5_prefix = 2; |
| 50 } | 61 } |
| 51 | 62 |
| 52 // The callstack and counts. | 63 // The callstack and counts. |
| 53 repeated Sample sample = 1; | 64 repeated Sample sample = 1; |
| 54 | 65 |
| 55 // List of module ids found in this sample. | 66 // List of module ids found in this sample. |
| 56 repeated ModuleIdentifier module_id = 2; | 67 repeated ModuleIdentifier module_id = 2; |
| 57 | 68 |
| 58 // Duration of this profile. | 69 // Duration of this profile. |
| 59 optional int32 profile_duration_ms = 3; | 70 optional int32 profile_duration_ms = 3; |
| 60 | 71 |
| 61 // Time between samples. | 72 // Time between samples. |
| 62 optional int32 sampling_period_ms = 4; | 73 optional int32 sampling_period_ms = 4; |
| 63 } | 74 } |
| OLD | NEW |