x64: enable VTune support by default (#3821)
* x64: enable VTune support by default After significant work in the `ittapi-rs` crate, this dependency should build without issue on Wasmtime's supported operating systems: Windows, Linux, and macOS. The difference in the release binary is <20KB, so this change makes `vtune` a default build feature. This change upgrades `ittapi-rs` to v0.2.0 and updates the documentation. * review: add configuration for defaults in more places * review: remove OS conditional compilation, add architecture * review: do not default vtune feature in wasmtime-jit
This commit is contained in:
@@ -22,7 +22,7 @@ gimli = { version = "0.26.0", default-features = false, features = ["std", "read
|
||||
object = { version = "0.27.0", default-features = false, features = ["std", "read_core", "elf"] }
|
||||
serde = { version = "1.0.94", features = ["derive"] }
|
||||
addr2line = { version = "0.17.0", default-features = false }
|
||||
ittapi-rs = { version = "0.1.6", optional = true }
|
||||
ittapi-rs = { version = "0.2.0", optional = true }
|
||||
bincode = "1.2.1"
|
||||
rustc-demangle = "0.1.16"
|
||||
cpp_demangle = "0.3.2"
|
||||
|
||||
@@ -12,8 +12,8 @@ cfg_if::cfg_if! {
|
||||
}
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(all(feature = "vtune", target_os = "linux"))] {
|
||||
#[path = "profiling/vtune_linux.rs"]
|
||||
if #[cfg(all(feature = "vtune", target_arch = "x86_64"))] {
|
||||
#[path = "profiling/vtune.rs"]
|
||||
mod vtune;
|
||||
} else {
|
||||
#[path = "profiling/vtune_disabled.rs"]
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
//! Adds support for profiling JIT-ed code using VTune.
|
||||
//!
|
||||
//! ### Build
|
||||
//!
|
||||
//! ```ignore
|
||||
//! cargo build --features=vtune
|
||||
//! ```
|
||||
//! Adds support for profiling JIT-ed code using VTune. By default, VTune
|
||||
//! support is built in to Wasmtime (configure with the `vtune` feature flag).
|
||||
//! To enable it at runtime, use the `--vtune` CLI flag.
|
||||
//!
|
||||
//! ### Profile
|
||||
//!
|
||||
Reference in New Issue
Block a user