From c1b643cc6ac45dbd0eabdcd7425c7e86006c27d6 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Fri, 30 May 2014 23:44:11 +0100 Subject: Fixed and refactored profiler options handling - extracted profiler options in a separate class - switched from system property reading to command line arguments - added profile based compilation options to CompilerOptions - removed no longer used kProfile compilation filter - optimize dex files only if the profiler is enabled - clean up unused arguments Bug: 12877748 Bug: 15275634 Change-Id: I37ff68e7694370950ce8db2360562e9058ecebb7 --- runtime/utils.cc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'runtime/utils.cc') diff --git a/runtime/utils.cc b/runtime/utils.cc index 05ff5ffbdf..f562252823 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc @@ -1302,23 +1302,4 @@ bool Exec(std::vector& arg_vector, std::string* error_msg) { return true; } -double GetDoubleProperty(const char* property, double min_value, double max_value, double default_value) { -#ifndef HAVE_ANDROID_OS - return default_value; -#else - char buf[PROP_VALUE_MAX]; - char* endptr; - - property_get(property, buf, ""); - double value = strtod(buf, &endptr); - - // Return the defalt value if the string is invalid or the value is outside the given range - if ((value == 0 && endptr == buf) // Invalid string - || (value < min_value) || (value > max_value)) { // Out of range value - return default_value; - } - return value; -#endif -} - } // namespace art -- cgit v1.2.3-59-g8ed1b