Changeset 34969 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Jul 2, 2008, 9:55:22 PM (17 years ago)
Author:
[email protected]
Message:

Add the ability to trace JavaScriptCore garabge collections using dtrace.

Reviewed by Sam Weinig.

  • JavaScriptCore.xcodeproj/project.pbxproj: Generate the dtrace probe header

file when building on a new enough version of Mac OS X.

  • JavaScriptCorePrefix.h: Add our standard Mac OS X version detection macros.
  • kjs/Tracing.d: Declare three dtrace probes.
  • kjs/Tracing.h: Include the generated dtrace macros if dtrace is available,

otherwise provide versions that do nothing.

  • kjs/collector.cpp:

(KJS::Heap::collect): Fire dtrace probes when starting a collection, after the
mark phase has completed, and when the collection is complete.

  • wtf/Platform.h: Define HAVE_DTRACE when building on a new enough version of Mac OS X.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r34838 r34969  
    226226#define ENABLE_MAC_JAVA_BRIDGE 1
    227227#define HAVE_READLINE 1
     228#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
     229#define HAVE_DTRACE 1
     230#endif
    228231#endif
    229232
Note: See TracChangeset for help on using the changeset viewer.