pub struct GenerationTimings {
pub scan_parse_ms: u64,
pub graph_ms: u64,
pub incremental_ms: u64,
pub chunk_ms: u64,
pub card_ms: u64,
pub wiki_ms: u64,
pub index_guide_ms: u64,
pub render_ms: u64,
pub index_ms: u64,
pub state_ms: u64,
pub total_ms: u64,
}Expand description
生成流水线分段计时(v32 8.1 FR-301 数据驱动剖析)
各段毫秒:扫描/解析、图构建、增量分析、分块、卡片生成、Wiki 页生成、 阅读指南、渲染写盘、搜索索引、状态保存。由 run_pipeline_with_progress 收集(chunk/card/wiki 三段的内部值来自 generate::GenerationOutput.timings), 完成时写入 .state/last_timings.json 供 bench 回放后读取——评测可定位 大仓各阶段瓶颈(cal.com mock 372s 先例)。.state 非产物页,写入不影响 test_determinism 内容级哈希;serde 全默认,文件缺失/损坏按 None 处理。
Fields§
§scan_parse_ms: u64§graph_ms: u64§incremental_ms: u64§chunk_ms: u64§card_ms: u64§wiki_ms: u64§index_guide_ms: u64§render_ms: u64§index_ms: u64§state_ms: u64§total_ms: u64Trait Implementations§
Source§impl Clone for GenerationTimings
impl Clone for GenerationTimings
Source§fn clone(&self) -> GenerationTimings
fn clone(&self) -> GenerationTimings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenerationTimings
impl Debug for GenerationTimings
Source§impl Default for GenerationTimings
impl Default for GenerationTimings
Source§fn default() -> GenerationTimings
fn default() -> GenerationTimings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerationTimingswhere
GenerationTimings: Default,
impl<'de> Deserialize<'de> for GenerationTimingswhere
GenerationTimings: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GenerationTimings
impl RefUnwindSafe for GenerationTimings
impl Send for GenerationTimings
impl Sync for GenerationTimings
impl Unpin for GenerationTimings
impl UnsafeUnpin for GenerationTimings
impl UnwindSafe for GenerationTimings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more