Index: src/platform-openbsd.cc |
diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc |
index b8b1ffa7692471cdf9552ff388b557ad9ce1059d..b9f133e0866e86edfd3ae0a41d8b7138a7c640f8 100644 |
--- a/src/platform-openbsd.cc |
+++ b/src/platform-openbsd.cc |
@@ -737,8 +737,9 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
Sampler* sampler = isolate->logger()->sampler(); |
if (sampler == NULL || !sampler->IsActive()) return; |
+ TickSample sample_obj; |
TickSample* sample = CpuProfiler::StartTickSampleEvent(isolate); |
- if (sample == NULL) return; |
+ if (sample == NULL) sample = &sample_obj; |
// Extracting the sample from the context is extremely machine dependent. |
sample->state = isolate->current_vm_state(); |
@@ -989,4 +990,12 @@ void Sampler::Stop() { |
} |
+void Sampler::StartSampling() { |
+} |
+ |
+ |
+void Sampler::StopSampling() { |
+} |
+ |
+ |
} } // namespace v8::internal |