Search
Preparing search index...
The search index is not available
pagespeed-quest
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Throttle
Class Throttle
Hierarchy
Throttle
Index
Constructors
constructor
Properties
current
Bytes
flush
Interval
Ms
interval
limit
Bytes
logs
Methods
check
And
Stack
compute
Capacity
simple
Report
start
stop
from
Mbps
Constructors
constructor
new
Throttle
(
limitBytes
:
number
, flushIntervalMs
?:
number
)
:
Throttle
Parameters
limitBytes:
number
Optional
flushIntervalMs:
number
Returns
Throttle
Properties
current
Bytes
current
Bytes
:
number
= 0
flush
Interval
Ms
flush
Interval
Ms
:
number
Optional
interval
interval
:
ReturnType
<
typeof
setInterval
>
limit
Bytes
limit
Bytes
:
number
logs
logs
:
ThrottlingLog
[]
= []
Methods
check
And
Stack
check
And
Stack
(
bytes
:
number
)
:
boolean
Parameters
bytes:
number
Returns
boolean
compute
Capacity
compute
Capacity
(
)
:
{
carryover
:
number
;
consumed
:
number
}
Returns
{
carryover
:
number
;
consumed
:
number
}
carryover
:
number
consumed
:
number
simple
Report
simple
Report
(
unitMs
?:
number
)
:
{
avgBytesPerUnit
:
number
;
maxBytesPerUnit
:
number
}
Parameters
Default value
unitMs:
number
= 1000
Returns
{
avgBytesPerUnit
:
number
;
maxBytesPerUnit
:
number
}
avg
Bytes
Per
Unit
:
number
max
Bytes
Per
Unit
:
number
start
start
(
)
:
void
Returns
void
stop
stop
(
)
:
void
Returns
void
Static
from
Mbps
from
Mbps
(
mbps
:
number
, flushIntervalMs
?:
number
)
:
Throttle
Parameters
mbps:
number
Optional
flushIntervalMs:
number
Returns
Throttle
Globals
Throttle
constructor
current
Bytes
flush
Interval
Ms
interval
limit
Bytes
logs
check
And
Stack
compute
Capacity
simple
Report
start
stop
from
Mbps
Generated using
TypeDoc