summaryrefslogtreecommitdiff
path: root/runtime/exec_utils.h
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2022-10-03 14:09:05 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2022-10-18 07:47:34 +0000
commit6eb814ce3a0d53126f066cb2148be69a4679dd7a (patch)
tree9a0fa6c6f81c205feeeffbb2f0605ac19db19ee1 /runtime/exec_utils.h
parent6e18f436561a678a3a10e4fb7354b92fb7a10c2a (diff)
Report Odrefresh compilation status, exit code and signal to statsd
As part of the changes done in aosp/2223024, we are now collecting some additional information about the compilation for primary/secondary architecture and system_server in dex2oat: - result status - exit code (if status is Exited) - signal (if status is Signaled) This CL reports this new data points to statsd as part of the already existing OdrefreshReported atom, so that this new information can be extracted and analysed. Bug: 246534524 Test: atest ArtGtestsTargetChroot (in particular art_standalone_odrefresh_tests) Change-Id: I9705845a6bae0716d091400adde6415c20eda3de
Diffstat (limited to 'runtime/exec_utils.h')
-rw-r--r--runtime/exec_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/exec_utils.h b/runtime/exec_utils.h
index c280e3e26f..11ab579b09 100644
--- a/runtime/exec_utils.h
+++ b/runtime/exec_utils.h
@@ -44,6 +44,8 @@ struct ExecCallbacks {
};
struct ExecResult {
+ // This struct needs to be in sync with the ExecResultStatus enum contained within
+ // the OdrefreshReported atom in frameworks/proto_logging/atoms.proto.
enum Status {
// Unable to get the status.
kUnknown = 0,
@@ -55,6 +57,7 @@ struct ExecResult {
kTimedOut = 3,
// Failed to start the process.
kStartFailed = 4,
+ kLast = kStartFailed
};
Status status = kUnknown;