Changeset 34960 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jul 2, 2008, 3:50:17 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34957 r34960 1 2008-07-02 Kevin McCullough <[email protected]> 2 3 Reviewed by Darin. 4 5 <rdar://problem/5951532> JSProfiler: Implement Bottom-Up view (19228) 6 - Subclass TreeProfile as I prepare for a HeavyProfile to be comming 7 later. 8 9 * JavaScriptCore.xcodeproj/project.pbxproj: 10 * profiler/Profile.cpp: By default we create a TreeProfile. 11 (KJS::Profile::create): 12 * profiler/Profile.h: Changes to the Profile class to make it amenable 13 to be inherited from. 14 (KJS::Profile::~Profile): 15 * profiler/TreeProfile.cpp: Added. 16 (KJS::TreeProfile::create): 17 (KJS::TreeProfile::TreeProfile): 18 (KJS::TreeProfile::heavyProfile): 19 * profiler/TreeProfile.h: Added. 20 (KJS::TreeProfile::treeProfile): 21 1 22 2008-07-02 Kevin McCullough <[email protected]> 2 23 -
trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r34957 r34960 87 87 95AB83420DA4322500BC83F3 /* Profiler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 95AB832E0DA42CAD00BC83F3 /* Profiler.cpp */; }; 88 88 95AB83560DA43C3000BC83F3 /* ProfileNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 95AB83540DA43B4400BC83F3 /* ProfileNode.cpp */; }; 89 95CD41B30E1BF6560085358E /* TreeProfile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 95CD41B10E1BF6560085358E /* TreeProfile.cpp */; }; 90 95CD41B40E1BF6560085358E /* TreeProfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 95CD41B20E1BF6560085358E /* TreeProfile.h */; }; 89 91 95E3BC050E1AE68200B2D1C1 /* CallIdentifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 95E3BC040E1AE68200B2D1C1 /* CallIdentifier.h */; settings = {ATTRIBUTES = (Private, ); }; }; 90 92 A72700900DAC6BBC00E548D7 /* JSNotAnObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A72700780DAC605600E548D7 /* JSNotAnObject.cpp */; }; … … 578 580 95AB83550DA43B4400BC83F3 /* ProfileNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ProfileNode.h; path = profiler/ProfileNode.h; sourceTree = "<group>"; }; 579 581 95C18D3E0C90E7EF00E72F73 /* JSRetainPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSRetainPtr.h; sourceTree = "<group>"; }; 582 95CD41B10E1BF6560085358E /* TreeProfile.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = TreeProfile.cpp; path = profiler/TreeProfile.cpp; sourceTree = "<group>"; }; 583 95CD41B20E1BF6560085358E /* TreeProfile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TreeProfile.h; path = profiler/TreeProfile.h; sourceTree = "<group>"; }; 580 584 95E3BC040E1AE68200B2D1C1 /* CallIdentifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CallIdentifier.h; path = profiler/CallIdentifier.h; sourceTree = "<group>"; }; 581 585 A72700770DAC605600E548D7 /* JSNotAnObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSNotAnObject.h; sourceTree = "<group>"; }; … … 1208 1212 isa = PBXGroup; 1209 1213 children = ( 1214 95CD41B10E1BF6560085358E /* TreeProfile.cpp */, 1215 95CD41B20E1BF6560085358E /* TreeProfile.h */, 1210 1216 95E3BC040E1AE68200B2D1C1 /* CallIdentifier.h */, 1211 1217 95AB83540DA43B4400BC83F3 /* ProfileNode.cpp */, … … 1426 1432 BC1167DA0E19BCC9008066DD /* JSCell.h in Headers */, 1427 1433 BC7F8FB90E19D1C3008632C0 /* JSNumberCell.h in Headers */, 1434 95CD41B40E1BF6560085358E /* TreeProfile.h in Headers */, 1428 1435 ); 1429 1436 runOnlyForDeploymentPostprocessing = 0; … … 1709 1716 149559EE0DDCDDF700648087 /* DebuggerCallFrame.cpp in Sources */, 1710 1717 E18E3A590DF9278C00D90B34 /* JSGlobalData.cpp in Sources */, 1718 95CD41B30E1BF6560085358E /* TreeProfile.cpp in Sources */, 1711 1719 ); 1712 1720 runOnlyForDeploymentPostprocessing = 0; -
trunk/JavaScriptCore/profiler/Profile.cpp
r34957 r34960 27 27 #include "Profile.h" 28 28 29 #include "ProfileNode.h"30 #include "JSGlobalObject.h"31 29 #include "ExecState.h" 32 30 #include "JSFunction.h" 31 #include "JSGlobalObject.h" 32 #include "ProfileNode.h" 33 #include "TreeProfile.h" 33 34 34 35 #include <stdio.h> … … 40 41 PassRefPtr<Profile> Profile::create(const UString& title, ExecState* originatingGlobalExec, unsigned pageGroupIdentifier, ProfilerClient* client) 41 42 { 42 return adoptRef(new Profile(title, originatingGlobalExec, pageGroupIdentifier, client));43 return TreeProfile::create(title, originatingGlobalExec, pageGroupIdentifier, client); 43 44 } 44 45 … … 57 58 } 58 59 60 Profile::~Profile() 61 { 62 } 63 59 64 void Profile::stopProfiling() 60 65 { -
trunk/JavaScriptCore/profiler/Profile.h
r34800 r34960 39 39 public: 40 40 static PassRefPtr<Profile> create(const UString& title, ExecState* originatingGlobalExec, unsigned pageGroupIdentifier, ProfilerClient*); 41 virtual ~Profile(); 41 42 42 43 void willExecute(const CallIdentifier&); … … 70 71 bool stoppedProfiling() { return m_stoppedProfiling; } 71 72 73 virtual Profile* heavyProfile() = 0; 74 virtual Profile* treeProfile() = 0; 75 72 76 #ifndef NDEBUG 73 77 void debugPrintData() const; … … 76 80 typedef void (Profile::*ProfileFunction)(const CallIdentifier& callIdentifier); 77 81 78 pr ivate:82 protected: 79 83 Profile(const UString& title, ExecState* originatingGlobalExec, unsigned pageGroupIdentifier, ProfilerClient*); 80 84 85 private: 81 86 void removeProfileStart(); 82 87 void removeProfileEnd();
Note:
See TracChangeset
for help on using the changeset viewer.