Revision: 24127
Author: [email protected]
Date: Mon Sep 22 17:19:19 2014 UTC
Log: Add histogram timers for (de-)serialization during compilation.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/578263004
https://code.google.com/p/v8/source/detail?r=24127
Modified:
/branches/bleeding_edge/src/compiler.cc
/branches/bleeding_edge/src/counters.h
=======================================
--- /branches/bleeding_edge/src/compiler.cc Mon Sep 22 12:32:47 2014 UTC
+++ /branches/bleeding_edge/src/compiler.cc Mon Sep 22 17:19:19 2014 UTC
@@ -1170,6 +1170,7 @@
if (FLAG_serialize_toplevel &&
compile_options == ScriptCompiler::kConsumeCodeCache &&
!isolate->debug()->is_loaded()) {
+ HistogramTimerScope
timer(isolate->counters()->compile_deserialize());
return CodeSerializer::Deserialize(isolate, *cached_data, source);
} else {
maybe_result = compilation_cache->LookupScript(
@@ -1216,6 +1217,8 @@
compilation_cache->PutScript(source, context, result);
if (FLAG_serialize_toplevel &&
compile_options == ScriptCompiler::kProduceCodeCache) {
+ HistogramTimerScope histogram_timer(
+ isolate->counters()->compile_serialize());
*cached_data = CodeSerializer::Serialize(isolate, result, source);
if (FLAG_profile_deserialization) {
PrintF("[Compiling and serializing %d bytes took %0.3f ms]\n",
=======================================
--- /branches/bleeding_edge/src/counters.h Fri Sep 19 09:30:04 2014 UTC
+++ /branches/bleeding_edge/src/counters.h Mon Sep 22 17:19:19 2014 UTC
@@ -311,7 +311,11 @@
HT(pre_parse, V8.PreParse) \
/* Total compilation times. */ \
HT(compile, V8.Compile) \
- HT(compile_eval, V8.CompileEval)
+ HT(compile_eval, V8.CompileEval) \
+ /* Serialization as part of compilation (code caching) */ \
+ HT(compile_serialize, V8.CompileSerialize) \
+ HT(compile_deserialize, V8.CompileDeserialize)
+
#define HISTOGRAM_PERCENTAGE_LIST(HP) \
/* Heap fragmentation. */ \
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.