#include "src/profiler/tracing-cpu-profiler.h"
#include "src/execution/isolate.h"
#include "src/init/v8.h"
#include "src/profiler/cpu-profiler.h"
#include "src/tracing/trace-event.h"
namespace v8 {
namespace internal {
TracingCpuProfilerImpl::TracingCpuProfilerImpl(Isolate* isolate)
: … { … }
TracingCpuProfilerImpl::~TracingCpuProfilerImpl() { … }
#if defined(V8_USE_PERFETTO)
void TracingCpuProfilerImpl::OnStart(
const perfetto::DataSourceBase::StartArgs&) { … }
namespace {
class RunInterruptsTask : public v8::Task { … };
}
#if defined(V8_USE_PERFETTO)
void TracingCpuProfilerImpl::OnStop(const perfetto::DataSourceBase::StopArgs&) { … }
void TracingCpuProfilerImpl::StartProfiling() { … }
void TracingCpuProfilerImpl::StopProfiling() { … }
}
}