Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index ecef2e346cf2084afab0d7eb2cdbdc2a28e768c8..19d61e36e1c27760322ad952148fe0c385d34b60 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -200,18 +200,7 @@ void CpuProfiler::DeleteProfile(CpuProfile* profile) { |
} |
-static bool 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); |
-} |
- |
- |
void CpuProfiler::CallbackEvent(Name* name, Address entry_point) { |
- if (FilterOutCodeCreateEvent(Logger::CALLBACK_TAG)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = entry_point; |
@@ -226,7 +215,6 @@ void CpuProfiler::CallbackEvent(Name* name, Address entry_point) { |
void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
Code* code, |
const char* name) { |
- if (FilterOutCodeCreateEvent(tag)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = code->address(); |
@@ -242,7 +230,6 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
Code* code, |
Name* name) { |
- if (FilterOutCodeCreateEvent(tag)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = code->address(); |
@@ -258,7 +245,6 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, Code* code, |
SharedFunctionInfo* shared, |
CompilationInfo* info, Name* script_name) { |
- if (FilterOutCodeCreateEvent(tag)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = code->address(); |
@@ -281,7 +267,6 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, Code* code, |
SharedFunctionInfo* shared, |
CompilationInfo* info, Name* script_name, |
int line, int column) { |
- if (FilterOutCodeCreateEvent(tag)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = code->address(); |
@@ -318,7 +303,6 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, Code* code, |
void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
Code* code, |
int args_count) { |
- if (FilterOutCodeCreateEvent(tag)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = code->address(); |
@@ -367,7 +351,6 @@ void CpuProfiler::CodeDeleteEvent(Address from) { |
void CpuProfiler::GetterCallbackEvent(Name* name, Address entry_point) { |
- if (FilterOutCodeCreateEvent(Logger::CALLBACK_TAG)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = entry_point; |
@@ -381,7 +364,6 @@ void CpuProfiler::GetterCallbackEvent(Name* name, Address entry_point) { |
void CpuProfiler::RegExpCodeCreateEvent(Code* code, String* source) { |
- if (FilterOutCodeCreateEvent(Logger::REG_EXP_TAG)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = code->address(); |
@@ -395,7 +377,6 @@ void CpuProfiler::RegExpCodeCreateEvent(Code* code, String* source) { |
void CpuProfiler::SetterCallbackEvent(Name* name, Address entry_point) { |
- if (FilterOutCodeCreateEvent(Logger::CALLBACK_TAG)) return; |
CodeEventsContainer evt_rec(CodeEventRecord::CODE_CREATION); |
CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; |
rec->start = entry_point; |