| OLD | NEW | 
|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. | 
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without | 
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are | 
| 4 // met: | 4 // met: | 
| 5 // | 5 // | 
| 6 //     * Redistributions of source code must retain the above copyright | 6 //     * Redistributions of source code must retain the above copyright | 
| 7 //       notice, this list of conditions and the following disclaimer. | 7 //       notice, this list of conditions and the following disclaimer. | 
| 8 //     * Redistributions in binary form must reproduce the above | 8 //     * Redistributions in binary form must reproduce the above | 
| 9 //       copyright notice, this list of conditions and the following | 9 //       copyright notice, this list of conditions and the following | 
| 10 //       disclaimer in the documentation and/or other materials provided | 10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 75   generator_->Tick(); | 75   generator_->Tick(); | 
| 76   TickSampleEventRecord* evt = | 76   TickSampleEventRecord* evt = | 
| 77       TickSampleEventRecord::init(ticks_buffer_.Enqueue()); | 77       TickSampleEventRecord::init(ticks_buffer_.Enqueue()); | 
| 78   evt->order = enqueue_order_;  // No increment! | 78   evt->order = enqueue_order_;  // No increment! | 
| 79   return &evt->sample; | 79   return &evt->sample; | 
| 80 } | 80 } | 
| 81 | 81 | 
| 82 | 82 | 
| 83 bool ProfilerEventsProcessor::FilterOutCodeCreateEvent( | 83 bool ProfilerEventsProcessor::FilterOutCodeCreateEvent( | 
| 84     Logger::LogEventsAndTags tag) { | 84     Logger::LogEventsAndTags tag) { | 
| 85   // In browser mode, leave only callbacks and non-native JS entries. |  | 
| 86   // We filter out regular expressions as currently we can't tell |  | 
| 87   // whether they origin from native scripts, so let's not confise people by |  | 
| 88   // showing them weird regexes they didn't wrote. |  | 
| 89   return FLAG_prof_browser_mode | 85   return FLAG_prof_browser_mode | 
| 90       && (tag != Logger::CALLBACK_TAG | 86       && (tag != Logger::CALLBACK_TAG | 
| 91           && tag != Logger::FUNCTION_TAG | 87           && tag != Logger::FUNCTION_TAG | 
| 92           && tag != Logger::LAZY_COMPILE_TAG | 88           && tag != Logger::LAZY_COMPILE_TAG | 
|  | 89           && tag != Logger::REG_EXP_TAG | 
| 93           && tag != Logger::SCRIPT_TAG); | 90           && tag != Logger::SCRIPT_TAG); | 
| 94 } | 91 } | 
| 95 | 92 | 
| 96 } }  // namespace v8::internal | 93 } }  // namespace v8::internal | 
| 97 | 94 | 
| 98 #endif  // ENABLE_LOGGING_AND_PROFILING | 95 #endif  // ENABLE_LOGGING_AND_PROFILING | 
| 99 | 96 | 
| 100 #endif  // V8_CPU_PROFILER_INL_H_ | 97 #endif  // V8_CPU_PROFILER_INL_H_ | 
| OLD | NEW | 
|---|