Changeset 32354 in webkit for trunk/JavaScriptCore/profiler/FunctionCallProfile.cpp
- Timestamp:
- Apr 21, 2008, 4:13:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/FunctionCallProfile.cpp
r32228 r32354 61 61 62 62 m_timeSum += getCurrentUTCTime() - m_startTime; 63 m_startTime = 0.0; 63 64 64 65 // FIXME: We may need something with higher resolution than ms as some functions will take 0ms. … … 95 96 96 97 return 0; 98 } 99 100 void FunctionCallProfile::stopProfiling() 101 { 102 if (m_startTime) 103 m_timeSum += getCurrentUTCTime() - m_startTime; 104 105 StackIterator endOfChildren = m_children.end(); 106 for (StackIterator it = m_children.begin(); it != endOfChildren; ++it) 107 (*it)->stopProfiling(); 97 108 } 98 109
Note:
See TracChangeset
for help on using the changeset viewer.