/// <summary> /// Try to get the count of samples for the given histogram keys /// </summary> public bool TryGet(HistogramKeys keys, out int count) { HistogramEntry entry = new HistogramEntry(keys); bool result = m_Data.TryGetValue(keys, out entry); count = result ? entry.Count : 0; return(result); }
internal void DoSample(HistogramKeys keys) { HistogramEntry entry; if (m_Data.TryGetValue(keys, out entry)) { entry.m_Count++; } else { m_Data.Add(keys, new HistogramEntry(keys)); } m_TotalSamples++; }
/// <summary> /// Try to get the count of samples for the given histogram keys /// </summary> public bool TryGet(HistogramKeys keys, out int count) { return(m_Hist.TryGet(keys, out count)); }
/// <summary> /// Return the count of samples for the given histogram keys /// </summary> public int this[HistogramKeys keys] { get { return(m_Hist[keys]); } }
/// <summary> /// Return the count of samples for the given histogram keys /// </summary> public int this[HistogramKeys keys] { get { return(m_Data[keys].Count); } }
public HistogramEntry(HistogramKeys keys) { m_BucketKeys = keys; m_Count = 1; }