-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't report empty histograms to FastForward (#140)
*Rationale* If histograms don't have any reported values, or have not been used in a long time, the snapshot is empty and the histogram metrics will not have a reasonable default value. All stats (min, max, median, etc) would incorrectly be reported as zero *Performance impact* The performance impact should be minimal, since it only adds one additional if-check when reporting histograms. Snapshot.size() is a fast method, simply returning the length of its internal array. For cases where snapshots are empty - i.e. unused histograms we should see a performance improvement since we can skip emitting the data points to FastForward as well as skipping the creation of the metric ids.
- Loading branch information
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters