Changeset 35847 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Aug 19, 2008, 3:22:02 PM (17 years ago)
Author:
[email protected]
Message:

2008-08-19 Kevin McCullough <[email protected]>

Reviewed by Tim and Mark.

Implement DTrace hooks for dashcode and instruments.

  • API/JSProfilerPrivate.cpp: Added. Expose SPI so that profiling can be turned on from a client. The DTrace probes were added within the profiler mechanism for performance reasons so the profiler must be started to enable tracing. (JSStartProfiling): (JSEndProfiling):
  • API/JSProfilerPrivate.h: Added. Ditto.
  • JavaScriptCore.exp: Exposing the start/stop methods to clients.
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/Tracing.d: Define the DTrace probes.
  • kjs/Tracing.h: Ditto.
  • profiler/ProfileGenerator.cpp: Implement the DTrace probes in the profiler. (KJS::ProfileGenerator::willExecute): (KJS::ProfileGenerator::didExecute):
Location:
trunk/JavaScriptCore/kjs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/Tracing.d

    r34969 r35847  
    2929    probe gc__marked();
    3030    probe gc__end(int, int);
     31   
     32    probe profile__will_execute(int, char*, char*, int);
     33    probe profile__did_execute(int, char*, char*, int);
    3134};
    3235
  • trunk/JavaScriptCore/kjs/Tracing.h

    r35027 r35847  
    4040#define JAVASCRIPTCORE_GC_MARKED_ENABLED() 0
    4141
     42#define JAVASCRIPTCORE_PROFILE_WILL_EXECUTE(arg0, arg1, arg2, arg3)
     43#define JAVASCRIPTCORE_PROFILE_WILL_EXECUTE_ENABLED() 0
     44
     45#define JAVASCRIPTCORE_PROFILE_DID_EXECUTE(arg0, arg1, arg2, arg3)
     46#define JAVASCRIPTCORE_PROFILE_DID_EXECUTE_ENABLED() 0
     47
    4248#endif
    4349
Note: See TracChangeset for help on using the changeset viewer.