| [package] | |
| name = "profile" | |
| version = "0.0.0" | |
| repository.workspace = true | |
| description = "A collection of tools for profiling rust-analyzer." | |
| authors.workspace = true | |
| edition.workspace = true | |
| license.workspace = true | |
| rust-version.workspace = true | |
| [lib] | |
| doctest = false | |
| [dependencies] | |
| jemalloc-ctl = { version = "0.5.4", package = "tikv-jemalloc-ctl", optional = true } | |
| [target.'cfg(all(target_os = "linux", not(target_env = "ohos"), any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64")))'.dependencies] | |
| perf-event = "=0.4.8" | |
| [target.'cfg(all(target_os = "linux", target_env = "gnu"))'.dependencies] | |
| libc.workspace = true | |
| [target.'cfg(windows)'.dependencies] | |
| windows-sys = { version = "0.61", features = [ | |
| "Win32_System_Threading", | |
| "Win32_System_ProcessStatus", | |
| ] } | |
| [features] | |
| cpu_profiler = [] | |
| jemalloc = ["jemalloc-ctl"] | |
| # Uncomment to enable for the whole crate graph | |
| # default = [ "cpu_profiler" ] | |
| [lints] | |
| workspace = true |