diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-11-22 16:04:25 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2013-11-22 16:14:34 -0800 |
commit | ff3b24aa929a9db79daeef7c0b0522da099700a9 (patch) | |
tree | b389b9076f0871c36e89ee76707d097ef0d77246 /runtime/runtime.cc | |
parent | e745d5a83acb8e795b86cc7bcb9c3c7da1006a5b (diff) | |
download | art-ff3b24aa929a9db79daeef7c0b0522da099700a9.zip art-ff3b24aa929a9db79daeef7c0b0522da099700a9.tar.gz art-ff3b24aa929a9db79daeef7c0b0522da099700a9.tar.bz2 |
Add developer option for dumping GC cumulative timings on shutdown.
The option is "-XX:DumpGCPerformanceOnShutdown".
Bug: 9986416
Change-Id: If6ebb26b3e611a9dead197740dbfc64e548dc388
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 08c0ba0..71ad252 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -368,6 +368,7 @@ Runtime::ParsedOptions* Runtime::ParsedOptions::Create(const Options& options, b parsed->long_pause_log_threshold_ = gc::Heap::kDefaultLongPauseLogThreshold; parsed->long_gc_log_threshold_ = gc::Heap::kDefaultLongGCLogThreshold; + parsed->dump_gc_performance_on_shutdown_ = false; parsed->ignore_max_footprint_ = false; parsed->lock_profiling_threshold_ = 0; @@ -528,6 +529,8 @@ Runtime::ParsedOptions* Runtime::ParsedOptions::Create(const Options& options, b } else if (option == "-XX:LongGCLogThreshold") { parsed->long_gc_log_threshold_ = ParseMemoryOption(option.substr(strlen("-XX:LongGCLogThreshold")).c_str(), 1024); + } else if (option == "-XX:DumpGCPerformanceOnShutdown") { + parsed->dump_gc_performance_on_shutdown_ = true; } else if (option == "-XX:IgnoreMaxFootprint") { parsed->ignore_max_footprint_ = true; } else if (option == "-XX:LowMemoryMode") { @@ -912,6 +915,7 @@ bool Runtime::Init(const Options& raw_options, bool ignore_unrecognized) { options->low_memory_mode_, options->long_pause_log_threshold_, options->long_gc_log_threshold_, + options->dump_gc_performance_on_shutdown_, options->ignore_max_footprint_); BlockSignals(); |