From c7ac91b21d1a15c14e29d69ff02b48c485962b0d Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Thu, 4 Feb 2021 21:44:01 +0000 Subject: [metrics] Report some ART metadata Adds reporting for some metadata associated with ART metrics, including timestamp relative to ART startup, the session id, and the process's user id. It additionally outputs placeholders for the compilation reason and compiler filter, but these need some additional plumbing from the Runtime and OatFileManager to fill in, so those will come in a followup CL. This CL also includes a fair amount of refactoring around metrics reporting and handling the session data. Example output: *** ART internal metrics *** Metadata: timestamp_since_start_ms: 768 session_id: 5026277321588503825 uid: 123456 compilation_reason: Unknown compiler_filter: (unspecified) Metrics: ClassVerificationTotalTime: count = 4167 JitMethodCompileTime: range = 0...1000000, buckets: 7,0,0,0,0,0 *** Done dumping ART internal metrics *** Test: ./test/run-test --host --jit 2232-write-metrics-to-log Change-Id: Ic74b503b135d71099d9e26bf660b60e4cc3a46bc --- compiler/driver/compiler_options_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_options_map.h') diff --git a/compiler/driver/compiler_options_map.h b/compiler/driver/compiler_options_map.h index 14f511286a..7e2f8466e0 100644 --- a/compiler/driver/compiler_options_map.h +++ b/compiler/driver/compiler_options_map.h @@ -20,9 +20,9 @@ #include #include +#include "base/compiler_filter.h" #include "base/variant_map.h" #include "cmdline_types.h" -#include "compiler_filter.h" namespace art { -- cgit v1.2.3-59-g8ed1b