| 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/file_path.mojom"; | 7 import "mojo/common/file_path.mojom"; |
| 8 import "mojo/common/time.mojom"; | 8 import "mojo/common/time.mojom"; |
| 9 | 9 |
| 10 // These structs mirror the corresponding types in base::StackSamplingProfiler. | 10 // These structs mirror the corresponding types in base::StackSamplingProfiler. |
| 11 | 11 |
| 12 struct CallStackModule { | 12 struct CallStackModule { |
| 13 uint64 base_address; | 13 uint64 base_address; |
| 14 string id; | 14 string id; |
| 15 mojo.common.mojom.FilePath filename; | 15 mojo.common.mojom.FilePath filename; |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 struct CallStackFrame { | 18 struct CallStackFrame { |
| 19 uint64 instruction_pointer; | 19 uint64 instruction_pointer; |
| 20 uint64 module_index; | 20 uint64 module_index; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 struct CallStackSample { | 23 struct CallStackSample { |
| 24 array<CallStackFrame> frames; | 24 array<CallStackFrame> frames; |
| 25 uint32 process_phases; | 25 uint32 process_milestones; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 struct CallStackProfile { | 28 struct CallStackProfile { |
| 29 array<CallStackModule> modules; | 29 array<CallStackModule> modules; |
| 30 array<CallStackSample> samples; | 30 array<CallStackSample> samples; |
| 31 mojo.common.mojom.TimeDelta profile_duration; | 31 mojo.common.mojom.TimeDelta profile_duration; |
| 32 mojo.common.mojom.TimeDelta sampling_period; | 32 mojo.common.mojom.TimeDelta sampling_period; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 enum Process { | 35 enum Process { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 Thread thread; | 78 Thread thread; |
| 79 Trigger trigger; | 79 Trigger trigger; |
| 80 SampleOrderingSpec ordering_spec; | 80 SampleOrderingSpec ordering_spec; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 interface CallStackProfileCollector { | 83 interface CallStackProfileCollector { |
| 84 Collect(CallStackProfileParams params, | 84 Collect(CallStackProfileParams params, |
| 85 mojo.common.mojom.TimeTicks start_timestamp, | 85 mojo.common.mojom.TimeTicks start_timestamp, |
| 86 array<CallStackProfile> profiles); | 86 array<CallStackProfile> profiles); |
| 87 }; | 87 }; |
| OLD | NEW |