Add profiling instructions

This commit is contained in:
Dennis Kobert
2023-06-17 10:34:19 -07:00
committed by Keavon Chambers
parent c63a63ba13
commit aa338c5b1b
3 changed files with 13 additions and 0 deletions
Generated
+10
View File
@@ -3115,6 +3115,15 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "nvtx"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "358dc398b07348e7541bf065ee313e8215a7832e07fab385f51683dc3be83ec7"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "objc" name = "objc"
version = "0.2.7" version = "0.2.7"
@@ -5987,6 +5996,7 @@ dependencies = [
"graphene-core", "graphene-core",
"log", "log",
"num-traits", "num-traits",
"nvtx",
"serde", "serde",
"spirv", "spirv",
"web-sys", "web-sys",
+1
View File
@@ -16,6 +16,7 @@ gpu = [
default = ["wgpu"] default = ["wgpu"]
wgpu = ["wgpu-executor", "gpu", "graphene-std/wgpu"] wgpu = ["wgpu-executor", "gpu", "graphene-std/wgpu"]
wayland = ["graphene-std/wayland"] wayland = ["graphene-std/wayland"]
profiling = ["wgpu-executor/profiling"]
[dependencies] [dependencies]
+2
View File
@@ -6,6 +6,7 @@ license = "MIT OR Apache-2.0"
[features] [features]
default = [] default = []
profiling = ["nvtx"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # 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" futures = "0.3.25"
web-sys = { version = "0.3.4", features = ["HtmlCanvasElement"] } web-sys = { version = "0.3.4", features = ["HtmlCanvasElement"] }
winit = "0.28.6" winit = "0.28.6"
nvtx = { version = "1.1.1", optional = true }