Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(811)

Side by Side Diff: components/metrics/public/interfaces/call_stack_profile_collector.mojom

Issue 2927593002: Make stack sampling profiler sample beyond startup. (Closed)
Patch Set: Remove debug log statements. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/metrics/public/cpp/call_stack_profile_struct_traits.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « components/metrics/public/cpp/call_stack_profile_struct_traits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698