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

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

Issue 2254743003: Introduce mojo interface for collecting StackSamplingProfiler data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 4 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module metrics.mojom;
6
7 import "mojo/common/common_custom_types.mojom";
sky 2016/08/17 21:01:33 Generally we put mojoms in a directory named publi
Mike Wittman 2016/08/17 22:40:15 Moved the files under public. I don't see a reason
8
9 // These structs mirror the corresponding types in base::StackSamplingProfiler.
10
11 struct CallStackModule {
12 uint64 base_address;
13 string id;
14 mojo.common.mojom.FilePath filename;
15 };
16
17 struct CallStackFrame {
18 uint64 instruction_pointer;
19 uint64 module_index;
20 };
21
22 struct CallStackProfile {
23 array<CallStackModule> modules;
24 array<array<CallStackFrame>> samples;
25 mojo.common.mojom.TimeDelta profile_duration;
26 mojo.common.mojom.TimeDelta sampling_period;
27 };
28
29 enum Trigger {
30 UNKNOWN,
31 PROCESS_STARTUP,
32 JANKY_TASK,
33 THREAD_HUNG,
34 };
35
36 interface CallStackProfileCollector {
37 Collect(Trigger trigger, bool preserve_sample_ordering,
38 mojo.common.mojom.TimeTicks start_timestamp,
39 array<CallStackProfile> profiles);
40 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698