flamegraph analysis
This commit is contained in:
parent
47158af5ee
commit
4156756a4f
3 changed files with 9 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
/target
|
||||
*.ppm
|
||||
flamegraph.svg
|
||||
perf.data*
|
|
@ -1 +1,7 @@
|
|||
# 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.
|
|
@ -43,7 +43,7 @@ fn main() {
|
|||
let aspect_ratio = 16.0 / 9.0;
|
||||
let image_width = 1000;
|
||||
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;
|
||||
|
||||
// World
|
||||
|
|
Loading…
Reference in a new issue