• fpizlo@apple.com's avatar
    display-profiler-output should be able to show source code · d0f5c88c
    fpizlo@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=104073
    
    Reviewed by Oliver Hunt.
    
    Source/JavaScriptCore: 
    
    Modify the profiler database to store source code. For functions, we store the
    function including the function signature.
    
    * bytecode/CodeBlock.h:
    (JSC::CodeBlock::unlinkedCodeBlock):
    (CodeBlock):
    * profiler/ProfilerBytecodes.cpp:
    (JSC::Profiler::Bytecodes::Bytecodes):
    (JSC::Profiler::Bytecodes::toJS):
    * profiler/ProfilerBytecodes.h:
    (Bytecodes):
    (JSC::Profiler::Bytecodes::sourceCode):
    * profiler/ProfilerDatabase.cpp:
    (JSC::Profiler::Database::addBytecodes):
    (JSC::Profiler::Database::ensureBytecodesFor):
    * profiler/ProfilerDatabase.h:
    (Database):
    * runtime/CommonIdentifiers.h:
    * runtime/Executable.h:
    (FunctionExecutable):
    (JSC::FunctionExecutable::unlinkedExecutable):
    
    Tools: 
    
    Display source code in the summary, using a one-line shortening.
    
    * Scripts/display-profiler-output:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d0f5c88c
CommonIdentifiers.h 4.34 KB