Changeset 32495 in webkit for trunk/JavaScriptCore/profiler/Profiler.cpp
- Timestamp:
- Apr 24, 2008, 10:20:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/Profiler.cpp
r32354 r32495 31 31 32 32 #include "FunctionCallProfile.h" 33 #include <kjs/ExecState.h> 34 #include <kjs/function.h> 33 #include "JSGlobalObject.h" 34 #include "ExecState.h" 35 #include "function.h" 35 36 36 37 #include <stdio.h> … … 53 54 } 54 55 55 void Profiler::startProfiling( )56 void Profiler::startProfiling(unsigned pageGroupIdentifier) 56 57 { 57 58 if (m_profiling) 58 59 return; 60 61 m_pageGroupIdentifier = pageGroupIdentifier; 59 62 60 63 // FIXME: When multi-threading is supported this will be a vector and calls … … 72 75 void Profiler::willExecute(ExecState* exec, JSObject* calledFunction) 73 76 { 74 if (!m_profiling )77 if (!m_profiling || exec->lexicalGlobalObject()->pageGroupIdentifier() != m_pageGroupIdentifier) 75 78 return; 76 79 … … 82 85 void Profiler::willExecute(ExecState* exec, const UString& sourceURL, int startingLineNumber) 83 86 { 84 if (!m_profiling )87 if (!m_profiling || exec->lexicalGlobalObject()->pageGroupIdentifier() != m_pageGroupIdentifier) 85 88 return; 86 89 … … 92 95 void Profiler::didExecute(ExecState* exec, JSObject* calledFunction) 93 96 { 94 if (!m_profiling )97 if (!m_profiling || exec->lexicalGlobalObject()->pageGroupIdentifier() != m_pageGroupIdentifier) 95 98 return; 96 99 … … 102 105 void Profiler::didExecute(ExecState* exec, const UString& sourceURL, int startingLineNumber) 103 106 { 104 if (!m_profiling )107 if (!m_profiling || exec->lexicalGlobalObject()->pageGroupIdentifier() != m_pageGroupIdentifier) 105 108 return; 106 109
Note:
See TracChangeset
for help on using the changeset viewer.