summaryrefslogtreecommitdiff
path: root/runtime/utils.cc
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2014-05-30 23:44:11 +0100
committer Calin Juravle <calin@google.com> 2014-06-06 12:14:01 +0100
commitc1b643cc6ac45dbd0eabdcd7425c7e86006c27d6 (patch)
tree250455427da979409a075a2b3197bd43ccd40fe1 /runtime/utils.cc
parentbb0b53f58f11c628f077603b56077dfed1a18f11 (diff)
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
Diffstat (limited to 'runtime/utils.cc')
-rw-r--r--runtime/utils.cc19
1 files changed, 0 insertions, 19 deletions
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<std::string>& 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