diff --git a/Cargo.lock b/Cargo.lock index 22cdd5e082..a841ca2c6d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3115,6 +3115,15 @@ dependencies = [ "libc", ] +[[package]] +name = "nvtx" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "358dc398b07348e7541bf065ee313e8215a7832e07fab385f51683dc3be83ec7" +dependencies = [ + "cc", +] + [[package]] name = "objc" version = "0.2.7" @@ -5987,6 +5996,7 @@ dependencies = [ "graphene-core", "log", "num-traits", + "nvtx", "serde", "spirv", "web-sys", diff --git a/node-graph/graphene-cli/Cargo.toml b/node-graph/graphene-cli/Cargo.toml index 3e155b4aab..6f1198f4f1 100644 --- a/node-graph/graphene-cli/Cargo.toml +++ b/node-graph/graphene-cli/Cargo.toml @@ -16,6 +16,7 @@ gpu = [ default = ["wgpu"] wgpu = ["wgpu-executor", "gpu", "graphene-std/wgpu"] wayland = ["graphene-std/wayland"] +profiling = ["wgpu-executor/profiling"] [dependencies] diff --git a/node-graph/wgpu-executor/Cargo.toml b/node-graph/wgpu-executor/Cargo.toml index 5d99ea7235..7a1173d0ef 100644 --- a/node-graph/wgpu-executor/Cargo.toml +++ b/node-graph/wgpu-executor/Cargo.toml @@ -6,6 +6,7 @@ license = "MIT OR Apache-2.0" [features] default = [] +profiling = ["nvtx"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -38,3 +39,4 @@ futures-intrusive = "0.5.0" futures = "0.3.25" web-sys = { version = "0.3.4", features = ["HtmlCanvasElement"] } winit = "0.28.6" +nvtx = { version = "1.1.1", optional = true }