OSDN Git Service

Add profman tool: responsible to process profiles
authorCalin Juravle <calin@google.com>
Mon, 1 Feb 2016 12:06:18 +0000 (12:06 +0000)
committerCalin Juravle <calin@google.com>
Mon, 22 Feb 2016 13:55:18 +0000 (13:55 +0000)
commit6caefd983a800a063b219f1d3ed71b1416cecd70
tree7fef29d5fcdb997950fd1a2524ae853b4dcfac3d
parentc017318a7c5a9142b1fff9f57eb4105b1d397bbd
Add profman tool: responsible to process profiles

This pulls out profile parsing from dex2oat into a separate tool.
Some additional refactoring:
- better return codes
- dex2oat now accepts only one profile file

This is the first step towards support secondary dex files and
extracting profiles out of the code_cache directory.

Bug: 26719109
Bug: 26563023

(cherry picked from commit d81c289e58f4ced8ec7674fd377c356669f97227)

Change-Id: I34d408faa318e866e1a23d4d04c369131ee5012b
17 files changed:
Android.mk
build/Android.gtest.mk
compiler/Android.mk
compiler/profile_assistant.h [deleted file]
dex2oat/dex2oat.cc
profman/Android.mk [new file with mode: 0644]
profman/profile_assistant.cc [moved from compiler/profile_assistant.cc with 51% similarity]
profman/profile_assistant.h [new file with mode: 0644]
profman/profile_assistant_test.cc [moved from compiler/profile_assistant_test.cc with 53% similarity]
profman/profman.cc [new file with mode: 0644]
runtime/base/scoped_flock.cc
runtime/base/unix_file/fd_file.cc
runtime/base/unix_file/fd_file.h
runtime/jit/offline_profiling_info.cc
runtime/jit/offline_profiling_info.h
runtime/utils.cc
runtime/utils.h