Skip to content

Commit bba276b

Browse files
committed
Add more gfx instrumentation
1 parent 3c991b9 commit bba276b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

toybox-gfx/src/bindings.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ impl BindingDescription {
167167
// TODO(pat.m): not sure if I want to do this here.
168168
// It does limit things a bit if I want to look things up in a per-pass BindingDescription.
169169
// Also binding should probably be done through a bindings tracker.
170+
#[tracing::instrument(skip_all, name="BindingDescription::bind")]
170171
pub fn bind(&self, core: &mut Core, resource_manager: &mut ResourceManager) {
171172
let mut barrier_tracker = core.barrier_tracker();
172173

toybox-gfx/src/core/barrier.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl BarrierTracker {
7373
/// Inserts any barriers required for the next draw call to be well defined, assuming appropriate calls to
7474
/// read/write_* have been made for each resource bound.
7575
/// Must be called immediately before any draw call/command that may read from or write to a resource.
76+
#[tracing::instrument(skip_all, name="BarrierTracker::emit_barriers")]
7677
pub fn emit_barriers(&mut self, gl: &gl::Gl) {
7778
let barrier_flags = std::mem::replace(&mut self.next_barrier_flags, 0);
7879

0 commit comments

Comments
 (0)