| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index f6c6ac3cf735e9005ef0ce4ee7a192cc46e0aa89..bc2ea0bb0af5e11e048280667909143dfba2a006 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -4129,6 +4129,19 @@ class V8_EXPORT Isolate {
|
| };
|
|
|
| /**
|
| + * Features reported via the SetUseCounterCallback callback. Do not chang
|
| + * assigned numbers of existing items; add new features to the end of this
|
| + * list.
|
| + */
|
| + enum UseCounterFeature {
|
| + kUseAsm = 0
|
| + };
|
| +
|
| + typedef void (*UseCounterCallback)(Isolate* isolate,
|
| + UseCounterFeature feature);
|
| +
|
| +
|
| + /**
|
| * Creates a new isolate. Does not change the currently entered
|
| * isolate.
|
| *
|
| @@ -4397,6 +4410,11 @@ class V8_EXPORT Isolate {
|
| */
|
| bool WillAutorunMicrotasks() const;
|
|
|
| + /**
|
| + * Sets a callback for counting the number of times a feature of V8 is used.
|
| + */
|
| + void SetUseCounterCallback(UseCounterCallback callback);
|
| +
|
| private:
|
| template<class K, class V, class Traits> friend class PersistentValueMap;
|
|
|
|
|