| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 07351c9aab150fb42e9c20d33192cd0700e448ee..58f8a7a3ac5e07926c55f55ca0e80aeda57f7181 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -8420,6 +8420,12 @@ int CpuProfile::GetSamplesCount() const {
|
| return reinterpret_cast<const i::CpuProfile*>(this)->samples_count();
|
| }
|
|
|
| +CpuProfiler* CpuProfiler::New(Isolate* isolate) {
|
| + return reinterpret_cast<CpuProfiler*>(
|
| + new i::CpuProfiler(reinterpret_cast<i::Isolate*>(isolate)));
|
| +}
|
| +
|
| +void CpuProfiler::Dispose() { delete reinterpret_cast<i::CpuProfiler*>(this); }
|
|
|
| void CpuProfiler::SetSamplingInterval(int us) {
|
| DCHECK_GE(us, 0);
|
|
|