Changeset 35847 in webkit for trunk/JavaScriptCore/profiler/ProfileGenerator.cpp
- Timestamp:
- Aug 19, 2008, 3:22:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/ProfileGenerator.cpp
r35823 r35847 29 29 #include "Profile.h" 30 30 #include "Profiler.h" 31 #include "Tracing.h" 31 32 32 33 namespace KJS { … … 57 58 void ProfileGenerator::willExecute(const CallIdentifier& callIdentifier) 58 59 { 60 if (JAVASCRIPTCORE_PROFILE_WILL_EXECUTE_ENABLED()) { 61 CString name = callIdentifier.m_name.UTF8String(); 62 CString url = callIdentifier.m_url.UTF8String(); 63 JAVASCRIPTCORE_PROFILE_WILL_EXECUTE(m_profileGroup, const_cast<char*>(name.c_str()), const_cast<char*>(url.c_str()), callIdentifier.m_lineNumber); 64 } 65 59 66 if (m_stoppedProfiling) { 60 67 ++m_stoppedCallDepth; … … 68 75 void ProfileGenerator::didExecute(const CallIdentifier& callIdentifier) 69 76 { 77 if (JAVASCRIPTCORE_PROFILE_DID_EXECUTE_ENABLED()) { 78 CString name = callIdentifier.m_name.UTF8String(); 79 CString url = callIdentifier.m_url.UTF8String(); 80 JAVASCRIPTCORE_PROFILE_DID_EXECUTE(m_profileGroup, const_cast<char*>(name.c_str()), const_cast<char*>(url.c_str()), callIdentifier.m_lineNumber); 81 } 82 70 83 if (!m_currentNode) 71 84 return;
Note:
See TracChangeset
for help on using the changeset viewer.