[wasm] Commit code space eagerly when profiling
Under normal execution, we commit code space in page chunks as we need it. However, this confuses linux perf, as it generates mmap events in the trace that seem to override the synthetic ones that are inserted by perf inject. Instead, when profiling with perf, we now commit the maximum code space size upfront, leading to a single mmap event early on. While this significantly increases memory use, it should not impact profiling of running wasm code. Bug: v8:8462 Change-Id: I078e9e486fe4ddecdea0b58543cc6bc5873cdfee Reviewed-on: https://chromium-review.googlesource.com/c/1340279 Commit-Queue: Stephan Herhut <herhut@chromium.org> Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#57577}
Showing
Please
register
or
sign in
to comment