We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb0d71 commit f60a9feCopy full SHA for f60a9fe
src/Deserialization/histograms.jl
@@ -5,14 +5,18 @@ function deserialize_histogram_summary(summary)
5
val = reshape(summary.histo.bucket,
6
reinterpret(Int,
7
summary.metadata.plugin_data.content)...)
8
- else
9
- val = summary.histo
+
+ return val
10
end
11
12
13
14
15
- return val
+ # deserialize histogramproto
+ hist_proto = summary.histo
+ bin_edges = similar(hist_proto.bucket_limit, length(hist_proto.bucket_limit)+1)
16
+ bin_edges[1] = hist_proto.min
17
+ bin_edges[2:end] .= hist_proto.bucket_limit
18
19
+ return Histogram(bin_edges, hist_proto.bucket)
20
21
22
# Lookahead for histograms .
0 commit comments