diff options
Diffstat (limited to 'deps/v8/src/cpu-profiler-inl.h')
-rw-r--r-- | deps/v8/src/cpu-profiler-inl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/v8/src/cpu-profiler-inl.h b/deps/v8/src/cpu-profiler-inl.h index 5df5893f8a..cb7fdd8ff6 100644 --- a/deps/v8/src/cpu-profiler-inl.h +++ b/deps/v8/src/cpu-profiler-inl.h @@ -82,11 +82,14 @@ TickSample* ProfilerEventsProcessor::TickSampleEvent() { bool ProfilerEventsProcessor::FilterOutCodeCreateEvent( Logger::LogEventsAndTags tag) { + // In browser mode, leave only callbacks and non-native JS entries. + // We filter out regular expressions as currently we can't tell + // whether they origin from native scripts, so let's not confise people by + // showing them weird regexes they didn't wrote. 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); } |