Skip to content

Commit

Permalink
Update flamegraphs.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly authored Oct 6, 2023
1 parent 5cd1aa0 commit e1452cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/flamegraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1452cd

Please sign in to comment.