Changeset 33466 in webkit for trunk/JavaScriptCore/profiler/Profile.cpp
- Timestamp:
- May 14, 2008, 5:25:48 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/Profile.cpp
r33382 r33466 27 27 #include "Profile.h" 28 28 29 #include " FunctionCallProfile.h"29 #include "ProfileNode.h" 30 30 #include "JSGlobalObject.h" 31 31 #include "ExecState.h" … … 43 43 // FIXME: When multi-threading is supported this will be a vector and calls 44 44 // into the profiler will need to know which thread it is executing on. 45 m_callTree = FunctionCallProfile::create("Thread_1");45 m_callTree = ProfileNode::create("Thread_1"); 46 46 } 47 47 48 48 void Profile::willExecute(const Vector<UString>& callStackNames) 49 49 { 50 RefPtr< FunctionCallProfile> callTreeInsertionPoint;51 RefPtr< FunctionCallProfile> foundNameInTree = m_callTree;50 RefPtr<ProfileNode> callTreeInsertionPoint; 51 RefPtr<ProfileNode> foundNameInTree = m_callTree; 52 52 NameIterator callStackLocation = callStackNames.begin(); 53 53 … … 60 60 if (!foundNameInTree) { // Insert remains of the stack into the call tree. 61 61 --callStackLocation; 62 for (RefPtr< FunctionCallProfile> next; callStackLocation != callStackNames.end(); ++callStackLocation) {63 next = FunctionCallProfile::create(*callStackLocation);62 for (RefPtr<ProfileNode> next; callStackLocation != callStackNames.end(); ++callStackLocation) { 63 next = ProfileNode::create(*callStackLocation); 64 64 callTreeInsertionPoint->addChild(next); 65 65 callTreeInsertionPoint = next;
Note:
See TracChangeset
for help on using the changeset viewer.