summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options_map.h
diff options
context:
space:
mode:
authorEric Holk <eholk@google.com>2021-02-04 21:44:01 +0000
committerEric Holk <eholk@google.com>2021-02-09 16:31:17 +0000
commitc7ac91b21d1a15c14e29d69ff02b48c485962b0d (patch)
treef8bcc4df536c29773742cbb54b32b959ebd601c3 /compiler/driver/compiler_options_map.h
parent5c48df9895530fb26666c6d79d155ef3886d7a83 (diff)
[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
Diffstat (limited to 'compiler/driver/compiler_options_map.h')
-rw-r--r--compiler/driver/compiler_options_map.h2
1 files changed, 1 insertions, 1 deletions
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 <string>
#include <vector>
+#include "base/compiler_filter.h"
#include "base/variant_map.h"
#include "cmdline_types.h"
-#include "compiler_filter.h"
namespace art {