summaryrefslogtreecommitdiff
path: root/perfprofd/perfprofd_record.proto
blob: 1660d5f14269d9ecc54842581782ec0809996901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

syntax = "proto2";

import "perf_data.proto";

option java_package = "com.google.android.perfprofd";

package quipper;

// Symbol info for a shared library without build id.
message SymbolInfo {
  // A symbol, stretching the given range of the library.
  message Symbol {
    optional string name = 1;
    optional uint64 name_md5_prefix = 2;

    optional uint64 addr = 3;
    optional uint64 size = 4;
  };

  optional string filename = 1;
  optional uint64 filename_md5_prefix = 2;

  optional uint64 min_vaddr = 3;

  repeated Symbol symbols = 4;
};

extend PerfDataProto {
  optional int64 id = 32;

  // Extra symbol info.
  repeated SymbolInfo symbol_info = 33;

  // Stats inherited from old perf_profile.proto.

  // is device screen on at point when profile is collected?
  optional bool display_on = 34;

  // system load at point when profile is collected; corresponds
  // to first value from /proc/loadavg multiplied by 100 then
  // converted to int32
  optional int32 sys_load_average = 35;

  // At the point when the profile was collected, was a camera active?
  optional bool camera_active = 36;

  // At the point when the profile was collected, was the device still booting?
  optional bool booting = 37;

  // At the point when the profile was collected, was the device plugged into
  // a charger?
  optional bool on_charger = 38;

  // CPU utilization measured prior to profile collection (expressed as
  // 100 minus the idle percentage).
  optional int32 cpu_utilization = 39;
};