blob: fb7c0b3a849f3e942625c2e1e759a16aad828390 [file] [log] [blame]
Yabin Cui42c8dc62016-06-03 15:06:53 -07001// The file format generated by report_sample.proto is as below:
2// LittleEndian32(record_size_0)
3// message Record(record_0) (having record_size_0 bytes)
4// LittleEndian32(record_size_1)
5// message Record(record_1) (having record_size_1 bytes)
6// ...
7// LittleEndian32(record_size_N)
8// message Record(record_N) (having record_size_N bytes)
9// LittleEndian32(0)
10
11syntax = "proto2";
12option optimize_for = LITE_RUNTIME;
13package simpleperf_report_proto;
Yabin Cui35df8632016-07-19 17:15:12 -070014option java_package = "com.android.tools.profiler.proto";
15option java_outer_classname = "SimpleperfReport";
Yabin Cui42c8dc62016-06-03 15:06:53 -070016
17message Sample {
18 optional uint64 time = 1;
19
20 message CallChainEntry {
21 optional uint64 ip = 1;
22 optional string symbol = 2;
23 optional string file = 3;
24 }
25
26 repeated CallChainEntry callchain = 2;
27}
28
29message Record {
30 enum Type {
31 UNKOWN = 1;
32 SAMPLE = 2;
33 }
34
35 // Identifies which field is filled in.
36 optional Type type = 1;
37
38 // One of the following will be filled in.
39 optional Sample sample = 2;
40}