diff options
| author | Thierry Berger <contact@thierryberger.com> | 2024-11-19 16:33:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-19 16:33:26 +0100 |
| commit | 510237cc29ebc667a8c158ef0340b7d1aa669a72 (patch) | |
| tree | 772daf3fac2e463eba254900001fce5a659f2f92 /src/pipeline/debug_render_pipeline | |
| parent | ff79f4c67478f8c8045464cac22f9e57388cd4a0 (diff) | |
| download | rapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.tar.gz rapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.tar.bz2 rapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.zip | |
Profiling support (#743)
Diffstat (limited to 'src/pipeline/debug_render_pipeline')
| -rw-r--r-- | src/pipeline/debug_render_pipeline/debug_render_pipeline.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs index f2e23cd..4d1a21e 100644 --- a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs +++ b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs @@ -85,6 +85,7 @@ impl DebugRenderPipeline { } /// Render the scene. + #[profiling::function] pub fn render( &mut self, backend: &mut impl DebugRenderBackend, @@ -101,6 +102,7 @@ impl DebugRenderPipeline { } /// Render contact. + #[profiling::function] pub fn render_contacts( &mut self, backend: &mut impl DebugRenderBackend, @@ -167,6 +169,7 @@ impl DebugRenderPipeline { } /// Render only the joints from the scene. + #[profiling::function] pub fn render_joints( &mut self, backend: &mut impl DebugRenderBackend, @@ -249,6 +252,7 @@ impl DebugRenderPipeline { } /// Render only the rigid-bodies from the scene. + #[profiling::function] pub fn render_rigid_bodies( &mut self, backend: &mut impl DebugRenderBackend, @@ -288,6 +292,7 @@ impl DebugRenderPipeline { } /// Render only the colliders from the scene. + #[profiling::function] pub fn render_colliders( &mut self, backend: &mut impl DebugRenderBackend, @@ -351,6 +356,7 @@ impl DebugRenderPipeline { } #[cfg(feature = "dim2")] + #[profiling::function] fn render_shape( &mut self, object: DebugRenderObject, @@ -458,6 +464,7 @@ impl DebugRenderPipeline { } #[cfg(feature = "dim3")] + #[profiling::function] fn render_shape( &mut self, object: DebugRenderObject, |
