Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index fd17edfc568cc16e1f20595c0f96f8d2ba32bd90..31707d999d4cff41b70648b7d4168a22b8fc3420 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6803,6 +6803,18 @@ Isolate* Isolate::New(const Isolate::CreateParams& params) { |
isolate->logger()->SetCodeEventHandler(kJitCodeEventDefault, |
params.code_event_handler); |
} |
+ if (params.counter_lookup_callback) { |
+ v8_isolate->SetCounterFunction(params.counter_lookup_callback); |
+ } |
+ |
+ if (params.create_histogram_callback) { |
+ v8_isolate->SetCreateHistogramFunction(params.create_histogram_callback); |
+ } |
+ |
+ if (params.add_histogram_sample_callback) { |
+ v8_isolate->SetAddHistogramSampleFunction( |
+ params.add_histogram_sample_callback); |
+ } |
SetResourceConstraints(isolate, params.constraints); |
// TODO(jochen): Once we got rid of Isolate::Current(), we can remove this. |
Isolate::Scope isolate_scope(v8_isolate); |