diff --git a/source/docs/histogram.png b/source/docs/histogram.png new file mode 100644 index 000000000000..bd642210da75 Binary files /dev/null and b/source/docs/histogram.png differ diff --git a/source/docs/stats.md b/source/docs/stats.md index 1616558b9afc..b39b5f252cf8 100644 --- a/source/docs/stats.md +++ b/source/docs/stats.md @@ -77,6 +77,10 @@ followed. accumulates in to *interval* histograms. * Finally the main *interval* histogram is merged to *cumulative* histogram. +Pictorially this looks like: + +![Histogram Stat Flush](histogram.png) + `ParentHistogram`s are held weakly a set in ThreadLocalStore. Like other stats, they keep an embedded reference count and are removed from the set and destroyed when the last strong reference disappears. Consequently, we must hold a lock for