| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 7a5535ff8d4ca4f1e49d9aa1b727e57c8ae8e7c5..f009cfe6836b1392039c290f63a41bff220da252 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -8730,23 +8730,20 @@ void Isolate::SetUseCounterCallback(UseCounterCallback callback) {
|
|
|
| void Isolate::SetCounterFunction(CounterLookupCallback callback) {
|
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
|
| - isolate->stats_table()->SetCounterFunction(callback);
|
| + isolate->counters()->ResetCounterFunction(callback);
|
| }
|
|
|
|
|
| void Isolate::SetCreateHistogramFunction(CreateHistogramCallback callback) {
|
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
|
| - isolate->stats_table()->SetCreateHistogramFunction(callback);
|
| - isolate->InitializeLoggingAndCounters();
|
| - isolate->counters()->ResetHistograms();
|
| - isolate->counters()->InitializeHistograms();
|
| + isolate->counters()->ResetCreateHistogramFunction(callback);
|
| }
|
|
|
|
|
| void Isolate::SetAddHistogramSampleFunction(
|
| AddHistogramSampleCallback callback) {
|
| reinterpret_cast<i::Isolate*>(this)
|
| - ->stats_table()
|
| + ->counters()
|
| ->SetAddHistogramSampleFunction(callback);
|
| }
|
|
|
|
|