public class DistributionData

This class represents the structure of a timing distribution according to the pipeline schema. It is meant to help serialize and deserialize data to the correct format for transport and storage, as well as including a helper function to calculate the bucket sizes.

@param values a map containing the bucket index mapped to the accumulated count @param sum the accumulated sum of all the samples in the timing distribution

  • Parse the distribution data from the given JSON string.

    If the string is not valid JSON or data is missing nil is returned.



    public init?(fromJson json: String)