From e1452cdc0cd5fd8200e419de1e580bdc2bd01ea5 Mon Sep 17 00:00:00 2001 From: Nathan Daly Date: Fri, 6 Oct 2023 11:29:02 -0600 Subject: [PATCH] Update flamegraphs.jl --- src/flamegraphs.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/flamegraphs.jl b/src/flamegraphs.jl index d4c04cc..d8b8b41 100644 --- a/src/flamegraphs.jl +++ b/src/flamegraphs.jl @@ -199,8 +199,11 @@ function pprof(fg::Node{NodeData}, ) # Write to disk - open(out, "w") do io + io = GzipCompressorStream(open(out, "w")) + try ProtoBuf.encode(ProtoBuf.ProtoEncoder(io), prof) + finally + close(io) end if web