Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index abe29340d02164623b37768fd2205d8f7488b78d..3a7c9608717a677ebb211c762627f9f940c717bb 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -304,6 +304,15 @@ void CpuProfiler::CodeMoveEvent(Address from, Address to) { |
} |
+void CpuProfiler::CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared) { |
+ CodeEventsContainer evt_rec(CodeEventRecord::CODE_DISABLE_OPT); |
+ CodeDisableOptEventRecord* rec = &evt_rec.CodeDisableOptEventRecord_; |
+ rec->start = code->address(); |
+ rec->bailout_reason = GetBailoutReason(shared->DisableOptimizationReason()); |
+ processor_->Enqueue(evt_rec); |
+} |
+ |
+ |
void CpuProfiler::CodeDeleteEvent(Address from) { |
} |