Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index c36850c1e0c436783dd5dfb5058673a59e4a7d99..fd6c8fde3a9c7f8fdc944a7f7de98aaf7eede3b8 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -156,6 +156,16 @@ void ProfilerEventsProcessor::Run() { |
} |
+void* ProfilerEventsProcessor::operator new(size_t size) { |
+ return AlignedMalloc(size, V8_ALIGNOF(ProfilerEventsProcessor)); |
+} |
+ |
+ |
+void ProfilerEventsProcessor::operator delete(void* ptr) { |
+ AlignedFree(ptr); |
+} |
+ |
+ |
int CpuProfiler::GetProfilesCount() { |
// The count of profiles doesn't depend on a security token. |
return profiles_->profiles()->length(); |