summaryrefslogtreecommitdiff
path: root/support/dumpleak.myr
diff options
context:
space:
mode:
Diffstat (limited to 'support/dumpleak.myr')
-rw-r--r--support/dumpleak.myr14
1 files changed, 2 insertions, 12 deletions
diff --git a/support/dumpleak.myr b/support/dumpleak.myr
index dcd6c07..32d8e25 100644
--- a/support/dumpleak.myr
+++ b/support/dumpleak.myr
@@ -38,7 +38,7 @@ const main = {args
;;
;;
- stats.tab = std.mkht(std.inthash, std.inteq)
+ stats.tab = std.mkht()
for d : cmd.args
match bio.open(d, bio.Rd)
| `std.Ok f: dump(d, f, &stats)
@@ -99,7 +99,7 @@ const tracefree = {path, f, stats
const dumptrace = {tab
var aggr
- aggr = std.mkht(hashintsl, std.sleq)
+ aggr = std.mkht()
for (k, (sz, stk)) : std.byhtkeyvals(tab)
match std.htget(aggr, stk[:stackaggr])
| `std.Some (count, total):
@@ -120,13 +120,3 @@ const get64 = {path, f
| res: std.fatal("failed to read {}: {}\n", path, res)
;;
}
-
-const hashintsl = {sl
- var h
-
- h = 0
- for i : sl
- h ^= std.inthash(i)
- ;;
- -> h
-}