| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 1a422fb73861a319e5d66a3c2603116767378f09..5901e450dfe8948fc1cc353b99cf96a7c97dc81c 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -53,6 +53,7 @@
|
| #endif
|
| #include "parser.h"
|
| #include "platform.h"
|
| +#include "platform/time.h"
|
| #include "profile-generator-inl.h"
|
| #include "property-details.h"
|
| #include "property.h"
|
| @@ -7348,6 +7349,13 @@ int CpuProfiler::GetProfileCount() {
|
| }
|
|
|
|
|
| +void CpuProfiler::SetSamplingInterval(int us) {
|
| + ASSERT(us >= 0);
|
| + return reinterpret_cast<i::CpuProfiler*>(this)->set_sampling_interval(
|
| + i::TimeDelta::FromMicroseconds(us));
|
| +}
|
| +
|
| +
|
| const CpuProfile* CpuProfiler::GetCpuProfile(int index) {
|
| return reinterpret_cast<const CpuProfile*>(
|
| reinterpret_cast<i::CpuProfiler*>(this)->GetProfile(index));
|
|
|