aboutsummaryrefslogtreecommitdiff
path: root/rtiaw.go
diff options
context:
space:
mode:
Diffstat (limited to 'rtiaw.go')
-rw-r--r--rtiaw.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/rtiaw.go b/rtiaw.go
index 392db71..2daa826 100644
--- a/rtiaw.go
+++ b/rtiaw.go
@@ -1,6 +1,15 @@
package main
+import (
+ "os"
+ "runtime/pprof"
+)
+
func main() {
+ f, _ := os.Create("rtiaw.prof");
+ pprof.StartCPUProfile(f);
+ defer pprof.StopCPUProfile();
+
var world Hittables;
mat_ground := Lambertian{Vec3{0.5, 0.5, 0.5}};