• Zhang, Shiyu's avatar
    Reland "Support Intel VTune ITT API" · 0b812b72
    Zhang, Shiyu authored
    This is a reland of 5f5b4b04
    
    Original change's description:
    > Support Intel VTune ITT API
    > 
    > Add VTune domain support extension to use VTune Domain/Task API and
    > tagging trace data for particular JS code block.
    > 
    > How to use:
    > 1. Set `"checkout_ittapi" = True` in the custom_vars section of .gclient
    > file to download intel/ittapi by 'gclient sync'
    > 2. Build d8 with gn build flag 'v8_enable_vtunetracemark = true'
    > 3. Run d8 with flag '--enable-vtune-domain-support'
    > 
    > The Vtune Domain/Task API can be invoked from JS to mark JS code block.
    > You can mark the start of a JS task by
    >     vtunedomainmark(domain_name, task_name, "start")
    > and the end of a task by
    >     vtunedomainmark(domain_name, task_name, "end")
    > Tasks can nest.
    > 
    > The VTune API (ittapi) is integrated as an external third party library
    > while the v8_vtune_jit also relies on the VTune ittapi. We have another
    > patch almost ready which refactors the v8_vtune_jit related code to
    > depend on the third_party/ittapi. We will submit the refactored v8_vtune_jit
    > code after this patch stabilized and landed.
    > 
    > 
    > Contributed by fanchen.kong@intel.com
    > 
    > Change-Id: I0ecc9dd4e1ea52545f1b6932fcdadfa7c1a6d2b2
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1938490
    > Commit-Queue: Shiyu Zhang <shiyu.zhang@intel.com>
    > Reviewed-by: Hannes Payer <hpayer@chromium.org>
    > Reviewed-by: Toon Verwaest <verwaest@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#65409}
    
    Change-Id: I563aa70fa2b8abe34c981af47aa7220cfc2a7edb
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1963511
    Commit-Queue: Toon Verwaest <verwaest@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#65478}
    0b812b72