Index: src/platform-freebsd.cc |
diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc |
index 986c5af4dc77a3d5812e1c8a6bccabff24b13708..14f7171a3cf7f33fb349bff7a65ad3d978ed117e 100644 |
--- a/src/platform-freebsd.cc |
+++ b/src/platform-freebsd.cc |
@@ -715,7 +715,7 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
if (sampler == NULL || !sampler->IsActive()) return; |
TickSample sample_obj; |
- TickSample* sample = CpuProfiler::TickSampleEvent(isolate); |
+ TickSample* sample = isolate->cpu_profiler()->TickSampleEvent(); |
if (sample == NULL) sample = &sample_obj; |
// Extracting the sample from the context is extremely machine dependent. |