Fix and tune ProfileSaver
- the statement to mark the profile saved was not guarded by the right
condition.
- increase the backoff to 2x and maximum period time to 10 minutes.
As part of this change also
- fix typos
- remove uneeded warning
- add more VLOGs for easier debuging in the future
Bug: 27914456
(cherry picked from commit 0cdaa6cdbeadceaee3a1acc641e7cc2548e125d9)
Change-Id: I76ddc6ced897bb91cfbd2a0cb6614bdeeafb9ee9
diff --git a/runtime/jit/profile_saver.h b/runtime/jit/profile_saver.h
index 91390fe..5cfbc22 100644
--- a/runtime/jit/profile_saver.h
+++ b/runtime/jit/profile_saver.h
@@ -101,7 +101,7 @@
std::string app_data_dir_;
bool shutting_down_ GUARDED_BY(Locks::profiler_lock_);
uint32_t last_save_number_of_methods_;
- uint32_t last_save_number_of_classes__;
+ uint32_t last_save_number_of_classes_;
// A local cache for the profile information. Maps each tracked file to its
// profile information. The size of this cache is usually very small and tops