| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 755a87fdba14f78c70e9ec8bd05a6852a65a49ce..4c30b1f1d581b23fb6f45812310483772562d86d 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -4903,7 +4903,12 @@ class V8_EXPORT Isolate {
|
| */
|
| struct CreateParams {
|
| CreateParams()
|
| - : entry_hook(NULL), code_event_handler(NULL), snapshot_blob(NULL) {}
|
| + : entry_hook(NULL),
|
| + code_event_handler(NULL),
|
| + snapshot_blob(NULL),
|
| + counter_lookup_callback(NULL),
|
| + create_histogram_callback(NULL),
|
| + add_histogram_sample_callback(NULL) {}
|
|
|
| /**
|
| * The optional entry_hook allows the host application to provide the
|
| @@ -4929,6 +4934,22 @@ class V8_EXPORT Isolate {
|
| * Explicitly specify a startup snapshot blob. The embedder owns the blob.
|
| */
|
| StartupData* snapshot_blob;
|
| +
|
| +
|
| + /**
|
| + * Enables the host application to provide a mechanism for recording
|
| + * statistics counters.
|
| + */
|
| + CounterLookupCallback counter_lookup_callback;
|
| +
|
| + /**
|
| + * Enables the host application to provide a mechanism for recording
|
| + * histograms. The CreateHistogram function returns a
|
| + * histogram which will later be passed to the AddHistogramSample
|
| + * function.
|
| + */
|
| + CreateHistogramCallback create_histogram_callback;
|
| + AddHistogramSampleCallback add_histogram_sample_callback;
|
| };
|
|
|
|
|
|
|