Merge wasmtime-jit and wasmtime-profiling (#3247)

* Merge `wasmtime-jit` and `wasmtime-profiling`

This commit merges the `wasmtime-profiling` crate into the
`wasmtime-jit` crate. It wasn't really buying a ton being a separate
crate and an upcoming refactoring I'd like to do is to remove the
`FinishedFunctions` structure. To enable the profilers to work as they
used to this commit changes them to pass `CompiledModule` as the
argument, but this only works if the profiling trait can see the
`CompiledModule` type.

* Fix a length calculation
This commit is contained in:
Alex Crichton
2021-08-26 16:22:11 -05:00
committed by GitHub
parent 0771abf210
commit d74cc33856
13 changed files with 72 additions and 161 deletions

23
Cargo.lock generated
View File

@@ -3572,7 +3572,6 @@ dependencies = [
"wasmtime-environ",
"wasmtime-fiber",
"wasmtime-jit",
"wasmtime-profiling",
"wasmtime-runtime",
"wasmtime-wasi",
"wat",
@@ -3777,16 +3776,18 @@ dependencies = [
"anyhow",
"cfg-if 1.0.0",
"gimli",
"ittapi-rs",
"libc",
"log",
"more-asserts",
"object",
"region",
"scroll",
"serde",
"target-lexicon",
"thiserror",
"wasmparser",
"wasmtime-environ",
"wasmtime-profiling",
"wasmtime-runtime",
"winapi",
]
@@ -3805,24 +3806,6 @@ dependencies = [
"wasmtime-environ",
]
[[package]]
name = "wasmtime-profiling"
version = "0.29.0"
dependencies = [
"anyhow",
"cfg-if 1.0.0",
"gimli",
"ittapi-rs",
"lazy_static",
"libc",
"object",
"scroll",
"serde",
"target-lexicon",
"wasmtime-environ",
"wasmtime-runtime",
]
[[package]]
name = "wasmtime-runtime"
version = "0.29.0"