-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Histogram exceeds metric 1 hour threshold #40096
Copy link
Copy link
Open
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.perf_hooksIssues and PRs related to the implementation of the Performance Timing API.Issues and PRs related to the implementation of the Performance Timing API.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.perf_hooksIssues and PRs related to the implementation of the Performance Timing API.Issues and PRs related to the implementation of the Performance Timing API.
📗 API Reference Docs Problem
Location
Section of the site where the content exists
Performance measurement APIs
Affected URL(s):
Description
The histogram
exceedsmetric description might be incorrect or at least vague in explaining what is being measured.I havent seen any code implementation of the mentioned
maximum 1 hour event loop delay threshold..My walkthrough in the code:
Histogram::RecordDeltatracks the delta time betweennowand the last time it was called. (code)exceedsis incremented whenhdr_record_value(,delta)returnstrue(code)The
hdr_record_valuesfunction is what determines this metric (code)a.
valueis always bigger than 0 in our case.b.
exceedsis incremented if this condition istrue:counts_indexis the index of the last counts that happened in thedeltaduration. Henceexceedswill increment whenever there is no counts during the lastresolutiontime.Is my understanding corrent here? CC @jasnell as I believe he's implemented this feature
submit a pull request.