profman: Move min new classes and methods limit to argument.

Cherry-pick from 6760f0d7c3d14b5bc54f431b9fdde1d68b4a51ad

This will allow an easy change to these value from framework.

Bug: 172490638
Test: run art_profman_tests
Change-Id: Iab027f7cbf5da0c14b2854900384df93c3a3e2e7
Merged-In: Iab027f7cbf5da0c14b2854900384df93c3a3e2e7
diff --git a/profman/profile_assistant.cc b/profman/profile_assistant.cc
index 1695d8c..ba5be4d 100644
--- a/profman/profile_assistant.cc
+++ b/profman/profile_assistant.cc
@@ -24,9 +24,7 @@
 // Minimum number of new methods/classes that profiles
 // must contain to enable recompilation.
 static constexpr const uint32_t kMinNewMethodsForCompilation = 100;
-static constexpr const uint32_t kMinNewMethodsPercentChangeForCompilation = 2;
 static constexpr const uint32_t kMinNewClassesForCompilation = 50;
-static constexpr const uint32_t kMinNewClassesPercentChangeForCompilation = 2;
 
 
 ProfileAssistant::ProcessingResult ProfileAssistant::ProcessProfilesInternal(
@@ -91,10 +89,10 @@
   // If we perform a forced merge do not analyze the difference between profiles.
   if (!options.IsForceMerge()) {
     uint32_t min_change_in_methods_for_compilation = std::max(
-        (kMinNewMethodsPercentChangeForCompilation * number_of_methods) / 100,
+        (options.GetMinNewMethodsPercentChangeForCompilation() * number_of_methods) / 100,
         kMinNewMethodsForCompilation);
     uint32_t min_change_in_classes_for_compilation = std::max(
-        (kMinNewClassesPercentChangeForCompilation * number_of_classes) / 100,
+        (options.GetMinNewClassesPercentChangeForCompilation() * number_of_classes) / 100,
         kMinNewClassesForCompilation);
     // Check if there is enough new information added by the current profiles.
     if (((info.GetNumberOfMethods() - number_of_methods) < min_change_in_methods_for_compilation) &&