diff options
author | Calin Juravle <calin@google.com> | 2014-06-06 11:15:25 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-06-06 11:15:25 +0000 |
commit | 20aa7cbe93d782e0e756a36e70d610fe84b4bbb4 (patch) | |
tree | cfaaa9770d5ddbc1034b2c9770a12e6ff4d19b7b /runtime/runtime.h | |
parent | eab52e3318dd0ab0f357a8420f0a8ccea69d61f1 (diff) | |
parent | c1b643cc6ac45dbd0eabdcd7425c7e86006c27d6 (diff) | |
download | art-20aa7cbe93d782e0e756a36e70d610fe84b4bbb4.zip art-20aa7cbe93d782e0e756a36e70d610fe84b4bbb4.tar.gz art-20aa7cbe93d782e0e756a36e70d610fe84b4bbb4.tar.bz2 |
Merge "Fixed and refactored profiler options handling"
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index afb5aa7..808d706 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -34,6 +34,7 @@ #include "instrumentation.h" #include "jobject_comparator.h" #include "object_callbacks.h" +#include "profiler_options.h" #include "quick/quick_method_frame_info.h" #include "runtime_stats.h" #include "safe_map.h" @@ -114,6 +115,10 @@ class Runtime { return image_compiler_options_; } + const ProfilerOptions& GetProfilerOptions() const { + return profiler_options_; + } + // Starts a runtime, which may cause threads to be started and code to run. bool Start() UNLOCK_FUNCTION(Locks::mutator_lock_); @@ -386,7 +391,7 @@ class Runtime { const std::vector<const DexFile*>& GetCompileTimeClassPath(jobject class_loader); void SetCompileTimeClassPath(jobject class_loader, std::vector<const DexFile*>& class_path); - void StartProfiler(const char* appDir, const char* procName); + void StartProfiler(const char* profile_output_filename); void UpdateProfilerState(int state); // Transaction support. @@ -559,15 +564,9 @@ class Runtime { const bool running_on_valgrind_; - // Runtime profile support. - bool profile_; std::string profile_output_filename_; - uint32_t profile_period_s_; // Generate profile every n seconds. - uint32_t profile_duration_s_; // Run profile for n seconds. - uint32_t profile_interval_us_; // Microseconds between samples. - double profile_backoff_coefficient_; // Coefficient to exponential backoff. - bool profile_start_immediately_; // Whether the profile should start upon app - // startup or be delayed by some random offset. + ProfilerOptions profiler_options_; + bool profiler_started_; bool method_trace_; std::string method_trace_file_; |