diff options
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 14 | ||||
| -rw-r--r-- | cmds/statsd/src/atoms_copy.proto | 14 |
2 files changed, 20 insertions, 8 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 968d08f90992..c81fc1dec7ab 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -103,7 +103,11 @@ message Atom { * resulted in a particular bit of work being done. */ message WorkSource { - // TODO + // The uid for a given element in the attribution chain. + repeated int32 uid = 1; + // The (optional) string tag for an element in the attribution chain. If the + // element has no tag, it is encoded as an empty string. + repeated string tag = 2; } /* @@ -413,8 +417,10 @@ message WakelockStateChanged { optional string tag = 3; enum State { - OFF = 0; - ON = 1; + RELEASE = 0; + ACQUIRE = 1; + CHANGE_RELEASE = 2; + CHANGE_ACQUIRE = 3; } optional State state = 4; } @@ -1066,4 +1072,4 @@ message ModemActivityInfoPulled { optional uint64 controller_rx_time_ms = 9; // product of current(mA), voltage(V) and time(ms) optional uint64 energy_used = 10; -} +}
\ No newline at end of file diff --git a/cmds/statsd/src/atoms_copy.proto b/cmds/statsd/src/atoms_copy.proto index 58e225a317f0..18b21449ebc6 100644 --- a/cmds/statsd/src/atoms_copy.proto +++ b/cmds/statsd/src/atoms_copy.proto @@ -99,7 +99,11 @@ message Atom { * resulted in a particular bit of work being done. */ message WorkSource { - // TODO + // The uid for a given element in the attribution chain. + repeated int32 uid = 1; + // The (optional) string tag for an element in the attribution chain. If the + // element has no tag, it is encoded as an empty string. + repeated string tag = 2; } /* @@ -404,8 +408,10 @@ message WakelockStateChanged { optional string tag = 3; enum State { - OFF = 0; - ON = 1; + RELEASE = 0; + ACQUIRE = 1; + CHANGE_RELEASE = 2; + CHANGE_ACQUIRE = 3; } optional State state = 4; } @@ -907,4 +913,4 @@ message CpuTimePerUidFreqPulled { optional uint64 uid = 1; optional uint64 freq_idx = 2; optional uint64 time_ms = 3; -} +}
\ No newline at end of file |