diff --git a/README.md b/README.md index befd434..74a7272 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,10 @@ skips building the engine if its already running (pgrep). no hot reload does not use game.dll, instead it imports the game source as a normal Odin package during build. + +## License + +This project is licensed under the [MIT License](LICENSE), unless otherwise +noted. Individual files or subdirectories may carry a different license (for +example, the [Unlicense](https://unlicense.org)); in those cases, the license +terms specified in the file or directory take precedence. diff --git a/scripts/arena-flame-graph/arena_log.json b/scripts/arena-flame-graph/arena_log.json new file mode 120000 index 0000000..f819cc3 --- /dev/null +++ b/scripts/arena-flame-graph/arena_log.json @@ -0,0 +1 @@ +../../out/arena_log.json \ No newline at end of file diff --git a/scripts/arena-flame-graph/favicon.ico b/scripts/arena-flame-graph/favicon.ico new file mode 100644 index 0000000..9a3f1a7 Binary files /dev/null and b/scripts/arena-flame-graph/favicon.ico differ diff --git a/scripts/arena-flame-graph/index.html b/scripts/arena-flame-graph/index.html new file mode 100644 index 0000000..db889ca --- /dev/null +++ b/scripts/arena-flame-graph/index.html @@ -0,0 +1,662 @@ + + + + + + + + Arena Memory Flame Graph + + + +
+

Arena Memory Flame Graph

+
+ Entries- + Live at peak- + Max bytes- + Timeline- +
+
+ +
+
+ + + +
+ Allocation + Pop + Clear +
+ Pan by dragging. Hover a block for details. +
+
+
+
+
+ +
+ + + + diff --git a/scripts/flame_graph b/scripts/flame_graph new file mode 100755 index 0000000..3f9b394 --- /dev/null +++ b/scripts/flame_graph @@ -0,0 +1,14 @@ +#!/bin/sh + +cd arena-flame-graph || ( echo "failed to cd"; exit 1 ) + +if command -v python3 >/dev/null 2>&1; then + PYTHON=python3 +elif command -v python >/dev/null 2>&1; then + PYTHON=python +else + echo "error: Python not found" >&2 + exit 1 +fi + +$PYTHON -m http.server