ART: Log approximate arena usage for slow verifier runs

Add ArenaStack::ApproximatePeakBytes and ScopedArenaAllocator::ApproximatePeakBytes
to get an approximate use when arena tracking is not enabled.

Print the approximate use for slow verifications.

Bug: 110852609
Test: m test-art-host
Test: manual
Change-Id: I529838410cdf4fe8247ddf4a6196a8186b0c4f3a
diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc
index ee91efa..4a3b5d1 100644
--- a/runtime/verifier/method_verifier.cc
+++ b/runtime/verifier/method_verifier.cc
@@ -5348,7 +5348,9 @@
       LOG(WARNING) << "Verification of " << dex_file->PrettyMethod(method_idx)
                    << " took " << PrettyDuration(duration_ns)
                    << (impl::IsLargeMethod(verifier.CodeItem()) ? " (large method)" : "")
-                   << " (" << StringPrintf("%.2f", bytecodes_per_second) << " bytecodes/s)";
+                   << " (" << StringPrintf("%.2f", bytecodes_per_second) << " bytecodes/s)"
+                   << " (" << verifier.allocator_.ApproximatePeakBytes()
+                   << "B approximate peak alloc)";
     }
   }
   result.types = verifier.encountered_failure_types_;