Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index c1ef49e8052b45758fcd1b30b42590a7c65886cd..b6508427bede9c0b5f574e28c2d21ef8a86623c6 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -908,7 +908,11 @@ void RenderThreadImpl::Shutdown() { |
// 1) a waste of performance and 2) a source of lots of complicated |
// crashes caused by shutdown ordering. Immediate exit eliminates |
// those problems. |
- // |
+ |
+ // Give the V8 isolate a chance to dump internal stats useful for performance |
+ // evaluation and debugging. |
+ blink::mainThreadIsolate()->DumpAndResetStats(); |
+ |
// In a single-process mode, we cannot call _exit(0) in Shutdown() because |
// it will exit the process before the browser side is ready to exit. |
if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |