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

Side by Side Diff: components/metrics/proto/call_stack_profile.proto

Issue 981143006: Metrics provider for statistical stack profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix clang compilation Created 5 years, 9 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 2015 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 // Call stack sample data for a given profiling session.
6
7 syntax = "proto2";
8
9 option optimize_for = LITE_RUNTIME;
10
11 package metrics;
12
13 // Next tag: 5
14 message CallStackProfile {
15
16 message Sample {
17 // The callstack. Sample.entries[0] represents the call on the top of the
18 // stack.
19 repeated CallStackEntry entries = 1;
Ilya Sherman 2015/03/10 01:44:46 I'm pretty sure that the protobuf convention is to
Mike Wittman 2015/03/16 23:55:15 Done.
20 // Number of times this stack signature occurs.
21 optional int64 count = 2;
22 }
23
24 // The callstack and counts.
25 repeated Sample samples = 1;
26 // List of module ids found in this sample.
27 repeated ModuleIdentifier module_ids = 2;
28
29 // Duration of this profile.
30 optional int32 profile_duration_ms = 3;
31 // Time between samples.
32 optional int32 sampling_period_ms = 4;
33 }
34
35 // Describes an entry in the callstack.
36 message CallStackEntry {
37 // Instruction pointer subtracted by module base.
38 optional uint64 address = 1;
39 // Index to the module identifier in |module_ids| of CallStackProfile.
40 optional int32 module_id_index = 2;
41 }
42
43 // Uniquely identifies a module.
44 message ModuleIdentifier {
45 // A hash that uniquely identifies a particular program version with high
46 // probability. This is parsed from headers of the loaded module.
47 // For binaries generated by GNU tools:
48 // Contents of the .note.gnu.build-id field.
49 // On Windows:
50 // GUID + AGE in the debug image headers of a module.
51 optional bytes build_id = 1;
52 // MD5Sum Prefix of the module name. This is the same hashing scheme as used
53 // to hash UMA histogram names.
54 optional fixed64 name_md5_prefix = 2;
55 }
Ilya Sherman 2015/03/10 01:44:46 Has this protocol buffer already been reviewed and
Mike Wittman 2015/03/16 23:55:15 Yes, and re-reviewed with suggested changes.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698