scarlet25151 opened issue #4681:
Hi all, thanks for your answer,
I saw in the code:
https://github.com/bytecodealliance/wasmtime/blob/a25d52046b0b641ab5acc447d7702f91d43b2bbd/crates/jit/src/profiling/jitdump_linux.rs#L85
the agent would load all the function, and for the functionfinished_functions
https://github.com/bytecodealliance/wasmtime/blob/a25d52046b0b641ab5acc447d7702f91d43b2bbd/crates/jit/src/instantiate.rs#L540-L553
I saw it will return map of all finished JIT functions, so I would like to make sure if I would use AOT compile the function it will be listed here or not? Or are all functions, no matter where it comes from, they would be listed here?
alexcrichton commented on issue #4681:
I don't fully understand your question, but if you're asking whether an AOT-compiled module and a JIT-compiled module both work with profiling the answer is yes, both should work the same way. Or are you perhaps asking a different question?
scarlet25151 commented on issue #4681:
@alexcrichton thank you for the confirmation, I think what I would like to make sure is for both AOT-compiled and JIT-compiled module, the functions inside the module should be load in the same way so when we calling
module.finished_functions()
they should be the same?
alexcrichton commented on issue #4681:
Correct, yes. If you're seeing different behavior locally, though, that's a bug we need to fix.
scarlet25151 commented on issue #4681:
Cool, appreciate for the answer, I think the issue can be closed.
scarlet25151 closed issue #4681:
Hi all, thanks for your answer,
I saw in the code:
https://github.com/bytecodealliance/wasmtime/blob/a25d52046b0b641ab5acc447d7702f91d43b2bbd/crates/jit/src/profiling/jitdump_linux.rs#L85
the agent would load all the function, and for the functionfinished_functions
https://github.com/bytecodealliance/wasmtime/blob/a25d52046b0b641ab5acc447d7702f91d43b2bbd/crates/jit/src/instantiate.rs#L540-L553
I saw it will return map of all finished JIT functions, so I would like to make sure if I would use AOT compile the function it will be listed here or not? Or are all functions, no matter where it comes from, they would be listed here?
Last updated: Dec 23 2024 at 12:05 UTC