Changeset 38022 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 30, 2008, 10:24:46 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r38020 r38022 1 2008-10-30 Kevin Lindeman <[email protected]> 2 3 Adds ProfilerServer, which is a distributed notification listener 4 that allows starting and stopping the profiler remotely for use 5 in conjunction with the profiler's DTace probes. 6 7 https://bugs.webkit.org/show_bug.cgi?id=21719 8 9 Reviewed by Timothy Hatcher. 10 11 * JavaScriptCore.xcodeproj/project.pbxproj: 12 * kjs/JSGlobalData.cpp: 13 (JSC::JSGlobalData::JSGlobalData): Calls startProfilerServerIfNeeded. 14 * profiler/ProfilerServer.h: Added. 15 * profiler/ProfilerServer.mm: Added. 16 (+[ProfilerServer sharedProfileServer]): 17 (-[ProfilerServer init]): 18 (-[ProfilerServer startProfiling]): 19 (-[ProfilerServer stopProfiling]): 20 (JSC::startProfilerServerIfNeeded): 21 1 22 2008-10-30 Kevin Ollivier <[email protected]> 2 23 -
trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r38019 r38022 71 71 14E0FF120DBAAED00007C0AB /* Machine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 149B15E70D81F986009CB8C7 /* Machine.cpp */; settings = {COMPILER_FLAGS = "-fno-tree-pre"; }; }; 72 72 14F3488F0E95EF8A003648BC /* CollectorHeapIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F3488E0E95EF8A003648BC /* CollectorHeapIterator.h */; settings = {ATTRIBUTES = (Private, ); }; }; 73 1C61516C0EBAC7A00031376F /* ProfilerServer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1C61516A0EBAC7A00031376F /* ProfilerServer.mm */; }; 74 1C61516D0EBAC7A00031376F /* ProfilerServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C61516B0EBAC7A00031376F /* ProfilerServer.h */; }; 73 75 5D53726F0E1C54880021E549 /* Tracing.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D53726E0E1C54880021E549 /* Tracing.h */; }; 74 76 5D5D8AB60E0D0A7200F9C692 /* jsc in Copy Into Framework */ = {isa = PBXBuildFile; fileRef = 932F5BE10822A1C700736975 /* jsc */; }; … … 452 454 14F252560D08DD8D004ECFFF /* JSVariableObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSVariableObject.h; sourceTree = "<group>"; }; 453 455 14F3488E0E95EF8A003648BC /* CollectorHeapIterator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectorHeapIterator.h; sourceTree = "<group>"; }; 456 1C61516A0EBAC7A00031376F /* ProfilerServer.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ProfilerServer.mm; path = profiler/ProfilerServer.mm; sourceTree = "<group>"; }; 457 1C61516B0EBAC7A00031376F /* ProfilerServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ProfilerServer.h; path = profiler/ProfilerServer.h; sourceTree = "<group>"; }; 454 458 1C9051420BA9E8A70081E9D0 /* Version.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; }; 455 459 1C9051430BA9E8A70081E9D0 /* JavaScriptCore.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = JavaScriptCore.xcconfig; sourceTree = "<group>"; }; … … 1310 1314 95AB832E0DA42CAD00BC83F3 /* Profiler.cpp */, 1311 1315 95AB832F0DA42CAD00BC83F3 /* Profiler.h */, 1316 1C61516A0EBAC7A00031376F /* ProfilerServer.mm */, 1317 1C61516B0EBAC7A00031376F /* ProfilerServer.h */, 1312 1318 95CD41B10E1BF6560085358E /* TreeProfile.cpp */, 1313 1319 95CD41B20E1BF6560085358E /* TreeProfile.h */, … … 1315 1321 name = profiler; 1316 1322 sourceTree = "<group>"; 1323 usesTabs = 0; 1317 1324 }; 1318 1325 E195678D09E7CF1200B89D13 /* unicode */ = { … … 1550 1557 BC9041480EB9250900FE26FA /* StructureIDTransitionTable.h in Headers */, 1551 1558 BC95437D0EBA70FD0072B6D3 /* PropertyMapHashTable.h in Headers */, 1559 1C61516D0EBAC7A00031376F /* ProfilerServer.h in Headers */, 1552 1560 ); 1553 1561 runOnlyForDeploymentPostprocessing = 0; … … 1868 1876 BCDE3B430E6C832D001453A7 /* StructureID.cpp in Sources */, 1869 1877 7E2ADD900E79AC1100D50C51 /* CharacterClassConstructor.cpp in Sources */, 1878 1C61516C0EBAC7A00031376F /* ProfilerServer.mm in Sources */, 1870 1879 ); 1871 1880 runOnlyForDeploymentPostprocessing = 0; -
trunk/JavaScriptCore/kjs/JSGlobalData.cpp
r37799 r38022 48 48 #endif 49 49 50 #if PLATFORM(MAC) 51 #include "ProfilerServer.h" 52 #endif 53 50 54 using namespace WTF; 51 55 … … 90 94 , heap(this) 91 95 { 96 #if PLATFORM(MAC) 97 startProfilerServerIfNeeded(); 98 #endif 92 99 } 93 100
Note:
See TracChangeset
for help on using the changeset viewer.