pub enum Qty {
JsSteps = 0,
NetBytes = 1,
NetRequests = 2,
TlsHandshakes = 3,
XhrBytes = 4,
XhrRequests = 5,
RelayoutRequests = 6,
}Expand description
量を見る物(足していくだけ)。
Variants§
JsSteps = 0
JS が実行したステップ数(CPU を譲る 32,768 ステップごとに足すので、その単位の粗さ)。
NetBytes = 1
GET(文書・スクリプト・CSS・フォント・画像の取得。HTTPS と平文の HTTP の両方)で受け取った応答の
バイト数(ヘッダ込み・圧縮のまま。HTTPS で途中切れを取り直した分も入る)。
XHR・fetch・POST の分は入らない(Qty::XhrBytes。握手の回数には入る)。
NetRequests = 2
GET の数(同上。取り直し・リダイレクトも 1 回と数える)。
TlsHandshakes = 3
TLS の握手の回数(全部の経路)。
XhrBytes = 4
XHR・fetch・POST など、メソッドを指定した要求(tls::https_request・net::http_request_real)で
受け取った応答のバイト数(ヘッダ込み・圧縮のまま。2026-11-16 追加)。
XhrRequests = 5
同じ要求の数(取り直しも 1 回と数える)。
RelayoutRequests = 6
組み直し(再レイアウト)を要求した DOM 変更の数(2026-11-18 追加)。 要求の場所で数えるので、間引きが時間で決まっても実行ごとに揺れない。
Trait Implementations§
impl Copy for Qty
impl Eq for Qty
impl StructuralPartialEq for Qty
Auto Trait Implementations§
impl Freeze for Qty
impl RefUnwindSafe for Qty
impl Send for Qty
impl Sync for Qty
impl Unpin for Qty
impl UnsafeUnpin for Qty
impl UnwindSafe for Qty
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.