Skip to content

Commit

Permalink
Fix tests that were loading proto to decompress
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly authored Jul 21, 2023
1 parent a5b82ef commit 4548f39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/flamegraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ end

function load_prof_proto(file)
@show file
open(io->decode(ProtoDecoder(io), PProf.perftools.profiles.Profile), file, "r")
io = GzipDecompressorStream(open(file, "r"))
fg_prof = try
decode(ProtoDecoder(io), PProf.perftools.profiles.Profile)
finally
close(io)
end
end

@testset "with_c" begin
Expand Down

0 comments on commit 4548f39

Please sign in to comment.