Add profiling instructions

This commit is contained in:
Dennis Kobert
2023-06-17 19:34:19 +02:00
committed by Keavon Chambers
parent c63a63ba13
commit aa338c5b1b
3 changed files with 13 additions and 0 deletions

10
Cargo.lock generated
View File

@@ -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",

View File

@@ -16,6 +16,7 @@ gpu = [
default = ["wgpu"]
wgpu = ["wgpu-executor", "gpu", "graphene-std/wgpu"]
wayland = ["graphene-std/wayland"]
profiling = ["wgpu-executor/profiling"]
[dependencies]

View File

@@ -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 }