diff options
Diffstat (limited to 'support/dumpleak.myr')
-rw-r--r-- | support/dumpleak.myr | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/support/dumpleak.myr b/support/dumpleak.myr index 350298a..dcd6c07 100644 --- a/support/dumpleak.myr +++ b/support/dumpleak.myr @@ -50,11 +50,11 @@ const main = {args const dump = {path, f, stats while true match bio.getle64(f) - | `bio.Ok 0: tracealloc(path, f, stats) - | `bio.Ok 1: tracefree(path, f, stats) - | `bio.Eof: break - | `bio.Ok wat: std.fatal("unknown action type {x}\n", wat) - | `bio.Err e: std.fatal("failed to read {}: {}\n", path, e) + | `std.Err `bio.Eof: break + | `std.Ok 0: tracealloc(path, f, stats) + | `std.Ok 1: tracefree(path, f, stats) + | `std.Ok wat: std.fatal("unknown action type {x}\n", wat) + | `std.Err e: std.fatal("failed to read {}: {}\n", path, e) ;; ;; if !summary @@ -78,7 +78,7 @@ const tracealloc = {path, f, stats ptr = get64(path, f) sz = get64(path, f) stk = [][:] - for var i = 0; i < 10; i++ + for var i = 0; i < 20; i++ std.slpush(&stk, get64(path, f)) ;; stats.allocs++ @@ -116,7 +116,7 @@ const dumptrace = {tab const get64 = {path, f match bio.getle64(f) - | `bio.Ok v: -> v + | `std.Ok v: -> v | res: std.fatal("failed to read {}: {}\n", path, res) ;; } |