Changeset 162796 in webkit for trunk/Source/JavaScriptCore/profiler/Profile.cpp
- Timestamp:
- Jan 25, 2014, 10:30:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/profiler/Profile.cpp
r159937 r162796 66 66 } 67 67 68 void Profile::focus(const ProfileNode* profileNode)69 {70 if (!profileNode || !m_head)71 return;72 73 bool processChildren;74 const CallIdentifier& callIdentifier = profileNode->callIdentifier();75 for (ProfileNode* currentNode = m_head.get(); currentNode; currentNode = currentNode->traverseNextNodePreOrder(processChildren))76 processChildren = currentNode->focus(callIdentifier);77 78 // Set the visible time of all nodes so that the %s display correctly.79 forEach(&ProfileNode::calculateVisibleTotalTime);80 }81 82 void Profile::exclude(const ProfileNode* profileNode)83 {84 if (!profileNode || !m_head)85 return;86 87 const CallIdentifier& callIdentifier = profileNode->callIdentifier();88 89 for (ProfileNode* currentNode = m_head.get(); currentNode; currentNode = currentNode->traverseNextNodePreOrder())90 currentNode->exclude(callIdentifier);91 92 // Set the visible time of the head so the %s display correctly.93 m_head->setVisibleTotalTime(m_head->totalTime() - m_head->selfTime());94 m_head->setVisibleSelfTime(0.0);95 }96 97 void Profile::restoreAll()98 {99 forEach(&ProfileNode::restore);100 }101 102 68 #ifndef NDEBUG 103 69 void Profile::debugPrintData() const
Note:
See TracChangeset
for help on using the changeset viewer.