flamegraph analysis

This commit is contained in:
Jonathan Flueren 2022-06-04 13:51:32 +02:00
parent 47158af5ee
commit 4156756a4f
3 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
/target /target
*.ppm *.ppm
flamegraph.svg
perf.data*

View file

@ -1 +1,7 @@
# Renderer - Grafik-AG # Renderer - Grafik-AG
***
### Performance analysis with Flamegraph
https://github.com/flamegraph-rs/flamegraph
If installed (`cargo install flamegraph`), run `cargo-flamegraph flamegraph` and `firefox flamegraph.svg` afterwards.

View file

@ -43,7 +43,7 @@ fn main() {
let aspect_ratio = 16.0 / 9.0; let aspect_ratio = 16.0 / 9.0;
let image_width = 1000; let image_width = 1000;
let image_height = (image_width as f64 / aspect_ratio) as u32; let image_height = (image_width as f64 / aspect_ratio) as u32;
let samples_per_pixel = 50_u32; let samples_per_pixel = 100_u32;
let max_depth = 50; let max_depth = 50;
// World // World