| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 1db14733a6e2e8699879ec631e8b0ad6507c40b4..4e85561627d723941f00e129399b2599c7bacd34 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -4391,6 +4391,21 @@ class V8_EXPORT Isolate {
|
| */
|
| bool WillAutorunMicrotasks() const;
|
|
|
| + /**
|
| + * Enables the host application to provide a mechanism for recording
|
| + * statistics counters.
|
| + */
|
| + void SetCounterFunction(CounterLookupCallback);
|
| +
|
| + /**
|
| + * 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.
|
| + */
|
| + void SetCreateHistogramFunction(CreateHistogramCallback);
|
| + void SetAddHistogramSampleFunction(AddHistogramSampleCallback);
|
| +
|
| private:
|
| template<class K, class V, class Traits> friend class PersistentValueMap;
|
|
|
| @@ -4687,6 +4702,8 @@ class V8_EXPORT V8 {
|
| /**
|
| * Enables the host application to provide a mechanism for recording
|
| * statistics counters.
|
| + *
|
| + * Deprecated, use Isolate::SetCounterFunction instead.
|
| */
|
| static void SetCounterFunction(CounterLookupCallback);
|
|
|
| @@ -4695,8 +4712,13 @@ class V8_EXPORT V8 {
|
| * histograms. The CreateHistogram function returns a
|
| * histogram which will later be passed to the AddHistogramSample
|
| * function.
|
| + *
|
| + * Deprecated, use Isolate::SetCreateHistogramFunction instead.
|
| + * Isolate::SetAddHistogramSampleFunction instead.
|
| */
|
| static void SetCreateHistogramFunction(CreateHistogramCallback);
|
| +
|
| + /** Deprecated, use Isolate::SetAddHistogramSampleFunction instead. */
|
| static void SetAddHistogramSampleFunction(AddHistogramSampleCallback);
|
|
|
| /** Callback function for reporting failed access checks.*/
|
|
|