| Yabin Cui | 42c8dc6 | 2016-06-03 15:06:53 -0700 | [diff] [blame] | 1 | // 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 | |
| 11 | syntax = "proto2"; |
| 12 | option optimize_for = LITE_RUNTIME; |
| 13 | package simpleperf_report_proto; |
| Yabin Cui | 35df863 | 2016-07-19 17:15:12 -0700 | [diff] [blame^] | 14 | option java_package = "com.android.tools.profiler.proto"; |
| 15 | option java_outer_classname = "SimpleperfReport"; |
| Yabin Cui | 42c8dc6 | 2016-06-03 15:06:53 -0700 | [diff] [blame] | 16 | |
| 17 | message 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 | |
| 29 | message 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 | } |