Skip to content

Commit

Permalink
Update puffin version
Browse files Browse the repository at this point in the history
Fixes #43
  • Loading branch information
M4tthewDE committed Nov 12, 2023
1 parent 61b3386 commit 62288e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
17 changes: 2 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env_logger = "0.10.0"
git2 = "0.17.2"
ignore = "0.4.20"
notify = "6.1.1"
puffin = "0.16.0"
puffin = "0.17.0"
puffin_egui = "0.23.0"
rfd = "0.11.4"

4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ mod ui;
mod watcher;

fn main() -> Result<(), eframe::Error> {
if env::var("PROFILING").is_ok() {
puffin::set_scopes_on(true);
}
env_logger::init();

let options = eframe::NativeOptions {
Expand Down Expand Up @@ -149,7 +152,6 @@ impl eframe::App for MyApp {
});

if env::var("PROFILING").is_ok() {
puffin::set_scopes_on(true);
puffin_egui::profiler_window(ctx);
}

Expand Down

0 comments on commit 62288e3

Please sign in to comment.