Index: src/cpu-profiler-inl.h |
diff --git a/src/cpu-profiler-inl.h b/src/cpu-profiler-inl.h |
index 408d46bfb7d1e40e95d7e42b97f3790a263c914b..4982197cabaf418006431f15d107fa29e6af8f2a 100644 |
--- a/src/cpu-profiler-inl.h |
+++ b/src/cpu-profiler-inl.h |
@@ -64,6 +64,16 @@ TickSample* ProfilerEventsProcessor::TickSampleEvent() { |
} |
+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_ |