Author: [email protected]
Date: Tue May 26 02:36:02 2009
New Revision: 2055
Modified:
trunk/src/compilation-cache.cc
trunk/src/counters.h
trunk/src/version.cc
Log:
Merge bleeding_e...@2052 to trunk.
Review URL: http://codereview.chromium.org/113833
Modified: trunk/src/compilation-cache.cc
==============================================================================
--- trunk/src/compilation-cache.cc (original)
+++ trunk/src/compilation-cache.cc Tue May 26 02:36:02 2009
@@ -36,7 +36,7 @@
// The number of script generations tell how many GCs a script can
// survive in the compilation cache, before it will be flushed if it
// hasn't been used.
- NUMBER_OF_SCRIPT_GENERATIONS = 5,
+ NUMBER_OF_SCRIPT_GENERATIONS = 8,
// The compilation cache consists of tables - one for each entry
// kind plus extras for the script generations.
@@ -173,6 +173,17 @@
// Go to the next generation.
generation++;
}
+ }
+
+ static void* script_histogram = StatsTable::CreateHistogram(
+ "V8.ScriptCache",
+ 0,
+ NUMBER_OF_SCRIPT_GENERATIONS,
+ NUMBER_OF_SCRIPT_GENERATIONS + 1);
+
+ if (script_histogram != NULL) {
+ // The level NUMBER_OF_SCRIPT_GENERATIONS is equivalent to a cache
miss.
+ StatsTable::AddHistogramSample(script_histogram, generation - SCRIPT);
}
// Once outside the manacles of the handle scope, we need to recheck
Modified: trunk/src/counters.h
==============================================================================
--- trunk/src/counters.h (original)
+++ trunk/src/counters.h Tue May 26 02:36:02 2009
@@ -75,7 +75,7 @@
// function. min and max define the expected minimum and maximum
// sample values. buckets is the maximum number of buckets
// that the samples will be grouped into.
- static void *CreateHistogram(const char* name,
+ static void* CreateHistogram(const char* name,
int min,
int max,
size_t buckets) {
Modified: trunk/src/version.cc
==============================================================================
--- trunk/src/version.cc (original)
+++ trunk/src/version.cc Tue May 26 02:36:02 2009
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 1
#define MINOR_VERSION 2
#define BUILD_NUMBER 5
-#define PATCH_LEVEL 0
+#define PATCH_LEVEL 1
#define CANDIDATE_VERSION false
// Define SONAME to have the SCons build the put a specific SONAME into the
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---