Ignore:
Timestamp:
Oct 30, 2008, 10:24:46 PM (17 years ago)
Author:
[email protected]
Message:

Adds ProfilerServer, which is a distributed notification listener
that allows starting and stopping the profiler remotely for use
in conjunction with the profiler's DTace probes.

https://bugs.webkit.org/show_bug.cgi?id=21719

Reviewed by Timothy Hatcher.

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData): Calls startProfilerServerIfNeeded.
  • profiler/ProfilerServer.h: Added.
  • profiler/ProfilerServer.mm: Added. (+[ProfilerServer sharedProfileServer]): (-[ProfilerServer init]): (-[ProfilerServer startProfiling]): (-[ProfilerServer stopProfiling]): (JSC::startProfilerServerIfNeeded):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r38019 r38022  
    7171                14E0FF120DBAAED00007C0AB /* Machine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 149B15E70D81F986009CB8C7 /* Machine.cpp */; settings = {COMPILER_FLAGS = "-fno-tree-pre"; }; };
    7272                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 */; };
    7375                5D53726F0E1C54880021E549 /* Tracing.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D53726E0E1C54880021E549 /* Tracing.h */; };
    7476                5D5D8AB60E0D0A7200F9C692 /* jsc in Copy Into Framework */ = {isa = PBXBuildFile; fileRef = 932F5BE10822A1C700736975 /* jsc */; };
     
    452454                14F252560D08DD8D004ECFFF /* JSVariableObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSVariableObject.h; sourceTree = "<group>"; };
    453455                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>"; };
    454458                1C9051420BA9E8A70081E9D0 /* Version.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; };
    455459                1C9051430BA9E8A70081E9D0 /* JavaScriptCore.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = JavaScriptCore.xcconfig; sourceTree = "<group>"; };
     
    13101314                                95AB832E0DA42CAD00BC83F3 /* Profiler.cpp */,
    13111315                                95AB832F0DA42CAD00BC83F3 /* Profiler.h */,
     1316                                1C61516A0EBAC7A00031376F /* ProfilerServer.mm */,
     1317                                1C61516B0EBAC7A00031376F /* ProfilerServer.h */,
    13121318                                95CD41B10E1BF6560085358E /* TreeProfile.cpp */,
    13131319                                95CD41B20E1BF6560085358E /* TreeProfile.h */,
     
    13151321                        name = profiler;
    13161322                        sourceTree = "<group>";
     1323                        usesTabs = 0;
    13171324                };
    13181325                E195678D09E7CF1200B89D13 /* unicode */ = {
     
    15501557                                BC9041480EB9250900FE26FA /* StructureIDTransitionTable.h in Headers */,
    15511558                                BC95437D0EBA70FD0072B6D3 /* PropertyMapHashTable.h in Headers */,
     1559                                1C61516D0EBAC7A00031376F /* ProfilerServer.h in Headers */,
    15521560                        );
    15531561                        runOnlyForDeploymentPostprocessing = 0;
     
    18681876                                BCDE3B430E6C832D001453A7 /* StructureID.cpp in Sources */,
    18691877                                7E2ADD900E79AC1100D50C51 /* CharacterClassConstructor.cpp in Sources */,
     1878                                1C61516C0EBAC7A00031376F /* ProfilerServer.mm in Sources */,
    18701879                        );
    18711880                        runOnlyForDeploymentPostprocessing = 0;
Note: See TracChangeset for help on using the changeset viewer.