Home | History | Annotate | Download | only in extensions

Lines Matching refs:threshold

47 static IdleState CalculateIdleStateAndUpdateTimestamp(int threshold);
49 static IdleState ThrottledCalculateIdleState(int threshold, Profile* profile);
87 IdleState CalculateIdleStateAndUpdateTimestamp(int threshold) {
89 return CalculateIdleState(threshold);
99 IdleState ThrottledCalculateIdleState(int threshold, Profile* profile) {
104 // Only allow one check per threshold.
107 if (delta < threshold)
111 polling_data.state = CalculateIdleStateAndUpdateTimestamp(threshold);
138 int threshold;
139 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &threshold));
140 threshold = CheckThresholdBounds(threshold);
141 IdleState state = ThrottledCalculateIdleState(threshold, profile());