• Clemens Backes's avatar
    [wasm] Fix code logging of wrappers · a22e8a70
    Clemens Backes authored
    Import wrappers were only logged if logging was enabled during
    compilation. If the profiler is enabled later, and regular wasm code is
    logged via {NativeModule::LogWasmCodes}, the import wrappers were
    missing.
    This CL fixes the long-standing TODO, and adds tests which triggered
    that code path. Those tests were hanging before because the expected
    functions did never appear in the profile.
    
    Drive-by: If {WasmEngine::LogOutstandingCodesForIsolate} detects that
    code logging is disabled by now, it should still clear the {code_to_log}
    vector.
    
    R=thibaudm@chromium.org
    
    Bug: chromium:1125986, chromium:1141787
    Change-Id: I2566ef369bb61a09488f2d932b6c10d92e4cb12f
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2574696Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#71645}
    a22e8a70
Name
Last commit
Last update
..
console Loading commit data...
counters Loading commit data...
cpu-profiler Loading commit data...
debugger Loading commit data...
heap-profiler Loading commit data...
regress Loading commit data...
runtime Loading commit data...
runtime-call-stats Loading commit data...
sessions Loading commit data...
type-profiler Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
frontend-channel.h Loading commit data...
inspector-test.cc Loading commit data...
inspector.status Loading commit data...
isolate-data.cc Loading commit data...
isolate-data.h Loading commit data...
json-parse-expected.txt Loading commit data...
json-parse.js Loading commit data...
print-method-not-found-expected.txt Loading commit data...
print-method-not-found.js Loading commit data...
protocol-test.js Loading commit data...
task-runner.cc Loading commit data...
task-runner.h Loading commit data...
tasks.cc Loading commit data...
tasks.h Loading commit data...
testcfg.py Loading commit data...
utils.cc Loading commit data...
utils.h Loading commit data...
wasm-inspector-test.js Loading commit data...