summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_compiler.h
diff options
context:
space:
mode:
author xueliang.zhong <xueliang.zhong@linaro.org> 2016-10-04 11:19:17 +0100
committer xueliang.zhong <xueliang.zhong@linaro.org> 2016-10-27 11:09:18 +0100
commit383b57d985adadc4cbccb4a62a0ef6afd243e511 (patch)
tree7d806c8b531b8e9f91c2d52b06ccbf16e10ac04e /compiler/jit/jit_compiler.h
parent2f2533f686f759ccd29d2712da2c7610382fb59f (diff)
ART jitted code profiling support.
- Generate perf map for method level profiling. - Generate jit dump for instruction level profiling. Command line example of perf map approach: $ perf record dalvikvm -Xcompiler-option -g -cp <classpath> MyClass $ perf report Command line example of perf jit dump approach: $ perf record -k mono dalvikvm -Xcompiler-option -g -cp <classpath> MyClass $ perf inject -i perf.data -o perf.data.jitted $ perf report -i perf.data.jitted $ perf annotate -i perf.data.jitted NOTE: 4.1 or newer kernel is needed for this jit dump analysis. Test: Compile. Test: Verified that perf-PID.map and jit-PID.dump files are only generated when running ART JIT with -g option. Tested on aosp_angler-userdebug and hikey-userdebug devices. The file formats are correct. Change-Id: I1bd3ce280f953811d3dfcc27dc8e59b3e1f481aa
Diffstat (limited to 'compiler/jit/jit_compiler.h')
-rw-r--r--compiler/jit/jit_compiler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/jit/jit_compiler.h b/compiler/jit/jit_compiler.h
index ea2747c085..f0f24d345e 100644
--- a/compiler/jit/jit_compiler.h
+++ b/compiler/jit/jit_compiler.h
@@ -19,6 +19,7 @@
#include "base/mutex.h"
#include "compiled_method.h"
+#include "jit_logger.h"
#include "driver/compiler_driver.h"
#include "driver/compiler_options.h"
@@ -50,7 +51,7 @@ class JitCompiler {
std::unique_ptr<CumulativeLogger> cumulative_logger_;
std::unique_ptr<CompilerDriver> compiler_driver_;
std::unique_ptr<const InstructionSetFeatures> instruction_set_features_;
- std::unique_ptr<File> perf_file_;
+ std::unique_ptr<JitLogger> jit_logger_;
JitCompiler();