diff options
author | 2022-10-07 14:27:34 +0000 | |
---|---|---|
committer | 2023-01-09 15:23:11 +0000 | |
commit | f6f5ada7b8231d19898726b37fa7db674a006065 (patch) | |
tree | 52a05d1c4f2885a5e7b397265b408068b0900c00 /compiler/jit/jit_compiler.cc | |
parent | e175b35f009451b3c0a218d6057aa4829206da55 (diff) |
Report value metrics as increments / deltas
This CL changes value metrics to be represented as increment / deltas
rather than absolute values, which will be aggregated on device by
summing them instead of taking the maximum value produced. This should
make the value metrics representative of all processes across restarts,
rather than reporting only the process producing the maximum value
(for which numerator and denominator could have been produced by
different processes).
Bug: 246330418
Test: atest ArtGtestsTargetChroot (in particular art_standalone_libartbase_tests)
Merged-In: I9b6e67143fbbf4e93748746491ac23b02543cd28
Merged-In: I660d3b4b3bd4a3cbcfb3a69263956b96cb248f3e
Change-Id: Ibc69f68b52b792f8844cab36c6a340efdfbfa380
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
-rw-r--r-- | compiler/jit/jit_compiler.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc index d2f5aa6799..e67236769e 100644 --- a/compiler/jit/jit_compiler.cc +++ b/compiler/jit/jit_compiler.cc @@ -203,6 +203,8 @@ bool JitCompiler::CompileMethod( VLOG(jit) << "Compilation of " << method->PrettyMethod() << " took " << PrettyDuration(UsToNs(duration_us)); runtime->GetMetrics()->JitMethodCompileCount()->AddOne(); + runtime->GetMetrics()->JitMethodCompileTotalTimeDelta()->Add(duration_us); + runtime->GetMetrics()->JitMethodCompileCountDelta()->AddOne(); } // Trim maps to reduce memory usage. |