Changeset 34402 in webkit for trunk/JavaScriptCore/profiler/Profile.cpp
- Timestamp:
- Jun 6, 2008, 9:48:54 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/Profile.cpp
r34392 r34402 38 38 const unsigned DEPTH_LIMIT = 1000; 39 39 40 static void stopProfiling(ProfileNode* n) { n->stopProfiling(); } 41 static void restoreAll(ProfileNode* n) { n->restore(); } 42 40 43 Profile::Profile(const UString& title, ExecState* originatingGlobalExec, unsigned pageGroupIdentifier) 41 44 : m_title(title) … … 54 57 m_currentNode = 0; 55 58 m_originatingGlobalExec = 0; 56 m_head->stopProfiling();59 forEach(KJS::stopProfiling); 57 60 m_depth = 0; 58 61 } … … 87 90 } 88 91 89 void Profile::forEach(UnaryFunction function) { 92 void Profile::forEach(UnaryFunction function) 93 { 90 94 91 95 ProfileNode* currentNode = m_head->firstChild(); … … 99 103 } 100 104 } 105 106 void Profile::restoreAll() 107 { 108 forEach(KJS::restoreAll); 109 } 110 101 111 102 112 #ifndef NDEBUG
Note:
See TracChangeset
for help on using the changeset viewer.