| 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. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 RENDER_THREAD, | 60 RENDER_THREAD, |
| 61 UTILITY_THREAD, | 61 UTILITY_THREAD, |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 enum Trigger { | 64 enum Trigger { |
| 65 UNKNOWN, | 65 UNKNOWN, |
| 66 PROCESS_STARTUP, | 66 PROCESS_STARTUP, |
| 67 JANKY_TASK, | 67 JANKY_TASK, |
| 68 THREAD_HUNG, | 68 THREAD_HUNG, |
| 69 PERIODIC_COLLECTION, |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 enum SampleOrderingSpec { | 72 enum SampleOrderingSpec { |
| 72 MAY_SHUFFLE, | 73 MAY_SHUFFLE, |
| 73 PRESERVE_ORDER, | 74 PRESERVE_ORDER, |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 struct CallStackProfileParams { | 77 struct CallStackProfileParams { |
| 77 Process process; | 78 Process process; |
| 78 Thread thread; | 79 Thread thread; |
| 79 Trigger trigger; | 80 Trigger trigger; |
| 80 SampleOrderingSpec ordering_spec; | 81 SampleOrderingSpec ordering_spec; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 interface CallStackProfileCollector { | 84 interface CallStackProfileCollector { |
| 84 Collect(CallStackProfileParams params, | 85 Collect(CallStackProfileParams params, |
| 85 mojo.common.mojom.TimeTicks start_timestamp, | 86 mojo.common.mojom.TimeTicks start_timestamp, |
| 86 array<CallStackProfile> profiles); | 87 array<CallStackProfile> profiles); |
| 87 }; | 88 }; |
| OLD | NEW |