ART: Add throughput to verifier duration message

Add the throughput in bytecodes per second to the duration logging.

Bug: 110852609
Test: m
Test: manual (-Xverifier-logging-threshold=0)
Change-Id: I426aefd295e2a1ac190e66d0f12035e894f22080
diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc
index 79b3178..73ae8e8 100644
--- a/runtime/verifier/method_verifier.cc
+++ b/runtime/verifier/method_verifier.cc
@@ -5310,9 +5310,12 @@
   if (kTimeVerifyMethod) {
     uint64_t duration_ns = NanoTime() - start_ns;
     if (duration_ns > MsToNs(Runtime::Current()->GetVerifierLoggingThresholdMs())) {
+      double bytecodes_per_second =
+          verifier.code_item_accessor_.InsnsSizeInCodeUnits() / (duration_ns * 1e-9);
       LOG(WARNING) << "Verification of " << dex_file->PrettyMethod(method_idx)
                    << " took " << PrettyDuration(duration_ns)
-                   << (impl::IsLargeMethod(verifier.CodeItem()) ? " (large method)" : "");
+                   << (impl::IsLargeMethod(verifier.CodeItem()) ? " (large method)" : "")
+                   << " (" << StringPrintf("%.2f", bytecodes_per_second) << " bytecodes/s)";
     }
   }
   result.types = verifier.encountered_failure_types_;