Skip to content

Commit ff6b542

Browse files
authored
feat: add DHAT profiler (#52)
1 parent 72e1283 commit ff6b542

File tree

8 files changed

+404
-5
lines changed

8 files changed

+404
-5
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ data/inputs/*
2121
!data/inputs/.keep
2222
data/puzzles/*
2323
!data/puzzles/.keep
24+
25+
# Dhat
26+
dhat-heap.json

Diff for: Cargo.lock

+349
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ authors = ["Felix Spöttel <[email protected]>"]
55
edition = "2021"
66
default-run = "advent_of_code"
77
publish = false
8-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
98

9+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010
[lib]
1111
doctest = false
1212

1313
[features]
1414
test_lib = []
15+
dhat-heap = ["dhat"]
1516

1617
[dependencies]
1718
pico-args = "0.5.0"
19+
dhat = { version = "0.3.2", optional = true }
20+
21+
[profile.dhat]
22+
inherits = "release"
23+
debug = 1

0 commit comments

Comments
 (0)