summaryrefslogtreecommitdiff
path: root/perfprofd/perfprofd_record.proto
blob: 08b5fa2b6fa2aacdcd12a816b09028c2e647dae1 (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
59

syntax = "proto2";

import "perf_data.proto";

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

package android.perfprofd;

message PerfprofdRecord {
  // 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;
  };

  optional int64 id = 1;
  optional quipper.PerfDataProto perf_data = 2;

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

  // Stats inherited from old perf_profile.proto.

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

  // 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 = 6;

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

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

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

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