Index: src/cpu-profiler-inl.h |
diff --git a/src/cpu-profiler-inl.h b/src/cpu-profiler-inl.h |
index 4982197cabaf418006431f15d107fa29e6af8f2a..bafea0679fa15957595a4a6d167e1fb398741855 100644 |
--- a/src/cpu-profiler-inl.h |
+++ b/src/cpu-profiler-inl.h |
@@ -56,24 +56,25 @@ void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
} |
+void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { |
+ CodeEntry* entry = code_map->FindEntry(start); |
+ if (!entry) { |
+ // Code objects for builtins should already have been added to the map but |
+ // some of them have been filtered out by CpuProfiler. |
+ return; |
+ } |
+ entry->SetBuiltinId(builtin_id); |
+} |
+ |
+ |
TickSample* ProfilerEventsProcessor::TickSampleEvent() { |
generator_->Tick(); |
TickSampleEventRecord* evt = |
- new(ticks_buffer_.Enqueue()) TickSampleEventRecord(enqueue_order_); |
+ new(ticks_buffer_.Enqueue()) TickSampleEventRecord(last_code_event_id_); |
return &evt->sample; |
} |
-bool ProfilerEventsProcessor::FilterOutCodeCreateEvent( |
- Logger::LogEventsAndTags tag) { |
- return FLAG_prof_browser_mode |
- && (tag != Logger::CALLBACK_TAG |
- && tag != Logger::FUNCTION_TAG |
- && tag != Logger::LAZY_COMPILE_TAG |
- && tag != Logger::REG_EXP_TAG |
- && tag != Logger::SCRIPT_TAG); |
-} |
- |
} } // namespace v8::internal |
#endif // V8_CPU_PROFILER_INL_H_ |