• Zhou, Zhiguo's avatar
    Log debug info of WASM for Intel VTune Amplifier · ec580709
    Zhou, Zhiguo authored
    This CL logs debug information of WASM in Intel VTune Amplifer via
    VTune's JIT Profiling API. With this CL, the profiling information
    of JITted code and its corresponding C/C++ source code is displayed
    optionally. To use this feature, a runtime flag "vtune_prof_annotat
    e_wasm" should be passed to the VTune-enabled V8 engine. Currently,
    the inline function in C/C++ is not well supported due to the
    limitation of source map.
    
    As a drive-by fix, the dynamically allocated event-specific data
    of JavaScript (src/third_party/vtune/vtune-jit.cc) is managed with
    C++ containers for safety.
    
    Change-Id: Ic27420fcdcd775bc5c7778abf5cff6edf0fb38b6
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1782126Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Commit-Queue: Zhiguo Zhou <zhiguo.zhou@intel.com>
    Cr-Commit-Position: refs/heads/master@{#64351}
    ec580709
vtune-jit.cc 9.93 KB