Skip to content

Commit

Permalink
commit to test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aclysma committed Oct 14, 2024
1 parent d2a8f6b commit e1ba29b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions profiling/examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ fn some_other_function(iterations: usize) {
profiling::scope!("some_other_function");
burn_time(5);

// Make this a non-literal to touch more of the API
//let scope_str = "do iterations";//.to_string();
//let scope_str_ref = scope_str;
{
// Make this a non-literal to touch more of the API
profiling::scope!(&"do iterations".to_string());
profiling::scope!("do iterations");
for i in 0..iterations {
profiling::scope!(
"some_inner_function_that_sleeps",
Expand Down

0 comments on commit e1ba29b

Please sign in to comment.