Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module metrics.mojom; | 5 module metrics.mojom; |
| 6 | 6 |
| 7 import "mojo/common/common_custom_types.mojom"; | 7 import "mojo/common/common_custom_types.mojom"; |
| 8 | 8 |
| 9 // These structs mirror the corresponding types in base::StackSamplingProfiler. | 9 // These structs mirror the corresponding types in base::StackSamplingProfiler. |
| 10 | 10 |
| 11 struct CallStackModule { | 11 struct CallStackModule { |
| 12 uint64 base_address; | 12 uint64 base_address; |
| 13 string id; | 13 string id; |
| 14 mojo.common.mojom.FilePath filename; | 14 mojo.common.mojom.FilePath filename; |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 struct CallStackFrame { | 17 struct CallStackFrame { |
| 18 uint64 instruction_pointer; | 18 uint64 instruction_pointer; |
| 19 uint64 module_index; | 19 uint64 module_index; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 struct CallStackSample { | |
| 23 array<CallStackFrame> frames; | |
| 24 int32 process_phases; | |
|
Mike Wittman
2016/10/24 22:28:14
uint32
| |
| 25 int32 current_activities; | |
| 26 }; | |
| 27 | |
| 22 struct CallStackProfile { | 28 struct CallStackProfile { |
| 23 array<CallStackModule> modules; | 29 array<CallStackModule> modules; |
| 24 array<array<CallStackFrame>> samples; | 30 array<CallStackSample> samples; |
| 25 mojo.common.mojom.TimeDelta profile_duration; | 31 mojo.common.mojom.TimeDelta profile_duration; |
| 26 mojo.common.mojom.TimeDelta sampling_period; | 32 mojo.common.mojom.TimeDelta sampling_period; |
| 27 }; | 33 }; |
| 28 | 34 |
| 29 enum Process { | 35 enum Process { |
| 30 UNKNOWN_PROCESS, | 36 UNKNOWN_PROCESS, |
| 31 BROWSER_PROCESS, | 37 BROWSER_PROCESS, |
| 32 RENDERER_PROCESS, | 38 RENDERER_PROCESS, |
| 33 GPU_PROCESS, | 39 GPU_PROCESS, |
| 34 UTILITY_PROCESS, | 40 UTILITY_PROCESS, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 Thread thread; | 78 Thread thread; |
| 73 Trigger trigger; | 79 Trigger trigger; |
| 74 SampleOrderingSpec ordering_spec; | 80 SampleOrderingSpec ordering_spec; |
| 75 }; | 81 }; |
| 76 | 82 |
| 77 interface CallStackProfileCollector { | 83 interface CallStackProfileCollector { |
| 78 Collect(CallStackProfileParams params, | 84 Collect(CallStackProfileParams params, |
| 79 mojo.common.mojom.TimeTicks start_timestamp, | 85 mojo.common.mojom.TimeTicks start_timestamp, |
| 80 array<CallStackProfile> profiles); | 86 array<CallStackProfile> profiles); |
| 81 }; | 87 }; |
| OLD | NEW |