Ignore:
Timestamp:
Feb 16, 2012, 11:10:12 PM (14 years ago)
Author:
[email protected]
Message:

Add JSC code profiling support on Linux x86
https://bugs.webkit.org/show_bug.cgi?id=78871

Reviewed by Gavin Barraclough.

We don't unwind the stack for now as we cannot guarantee all the
libraries are compiled without -fomit-frame-pointer.

  • tools/CodeProfile.cpp:

(JSC::CodeProfile::sample):

  • tools/CodeProfiling.cpp:

(JSC):
(JSC::profilingTimer):
(JSC::CodeProfiling::begin):
(JSC::CodeProfiling::end):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/tools/CodeProfile.cpp

    r107499 r108037  
    124124            return;
    125125
     126#if PLATFORM(MAC) && CPU(X86_64)
    126127        // Walk up the stack.
    127 #if PLATFORM(MAC) && CPU(X86_64)
    128128        pc = framePointer[1];
    129129        framePointer = reinterpret_cast<void**>(*framePointer);
     130#elif OS(LINUX) && CPU(X86)
     131        // Don't unwind the stack as some dependent third party libraries
     132        // may be compiled with -fomit-frame-pointer.
     133        framePointer = 0;
    130134#else
    131135        // This platform is not yet supported!
Note: See TracChangeset for help on using the changeset viewer.