pub enum Lat {
InputToPresent = 0,
OsLoop = 1,
AppDraw = 2,
AppLoop = 3,
Relayout = 4,
JsRun = 5,
}Expand description
時間を見る物(回数・最大・合計・境目を超えた回数を持つ)。
Variants§
InputToPresent = 0
入力(キー・マウス・シリアル)を取り出してから、OS がそれを処理して画面へ出し終わる (または出す物が無いと分かる)まで。OS の反応そのもの。
OsLoop = 1
OS のメインループ(入力・ウィンドウ・提示)が 1 周に使った時間。長い 1 周の間は入力も提示も進まない。
AppDraw = 2
アプリのスレッドが 1 回の描画に使った時間。
AppLoop = 3
アプリのスレッドが 1 周(イベントの処理+描画)に使った時間。この間、そのアプリは入力に答えない。
Relayout = 4
ブラウザの再レイアウト 1 回。
JsRun = 5
JS のスクリプト 1 本の実行(イベントループ込み)。
Trait Implementations§
impl Copy for Lat
impl Eq for Lat
impl StructuralPartialEq for Lat
Auto Trait Implementations§
impl Freeze for Lat
impl RefUnwindSafe for Lat
impl Send for Lat
impl Sync for Lat
impl Unpin for Lat
impl UnsafeUnpin for Lat
impl UnwindSafe for Lat
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.