mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
bbdbafdf8a
Add a new module `lock::observing`, enabled by the `observe-locks` feature, that records all nested lock acquisitions in trace files. Add a new utility to the workspace, `lock-analyzer`, that reads the files written by the `observe-locks` feature and writes out a new `define_lock_ranks!` macro invocation that covers all observed lock usage, along with comments giving the held and acquired source locations.
19 lines
371 B
TOML
19 lines
371 B
TOML
[package]
|
|
name = "lock-analyzer"
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
keywords.workspace = true
|
|
license.workspace = true
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
|
|
[dependencies]
|
|
ron.workspace = true
|
|
anyhow.workspace = true
|
|
|
|
[dependencies.serde]
|
|
workspace = true
|
|
features = ["serde_derive"]
|