• Ben L. Titzer's avatar
    [wasm/tools] Add import profiler · 4eb53245
    Ben L. Titzer authored
    Add a profiler for functions imported to WASM instances. This profiler
    is implemented entirely in JavaScript and monkey-patches
    WebAssembly.instantiate() and new WebAssembly.Instance() to instrument
    the imported functions to each instance in order to count their
    invocations and cumulative time.
    
    R=mstarzinger@chromium.org
    
    Bug: v8:8423
    Change-Id: If456355aba07dc69c5500bafbe35fc56b31486af
    Reviewed-on: https://chromium-review.googlesource.com/c/1347488
    Commit-Queue: Ben Titzer <titzer@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57746}
    4eb53245
wasm-import-profiler-end.js 323 Bytes