Reduce and measure native suffix convergence work
This commit is contained in:
1 parent
c008c52964
commit
b081c951af
10 files changed
+330
-97
No files matched your search
+3
-1
@@ -35,7 +35,7 @@ use texrra_tex_core::{
|
||||
execution::{
|
||||
Cancellation, ExecutionFailure, Executor, FormatImage, InputProfile, JobTime, Limits,
|
||||
NativeSession, Profile, RevisionError, RevisionExecution, RevisionFailure, RevisionJob, SourceFile,
|
||||
SourceProvider, State, WriteDestination,
|
||||
SourceProvider, State, SuffixKernelTimings, WriteDestination,
|
||||
},
|
||||
pdf_unicode::XdvGlyphNames,
|
||||
render::{DisplayItem, DisplayList},
|
||||
@@ -105,6 +105,8 @@ pub struct CheckpointTimings {
|
||||
pub capture: Duration,
|
||||
pub suffix_host_validation: Duration,
|
||||
pub suffix_kernel_validation: Duration,
|
||||
/// Subintervals within `suffix_kernel_validation`.
|
||||
pub suffix_kernel: SuffixKernelTimings,
|
||||
pub suffix_host_replay: Duration,
|
||||
/// Collecting the retained checkpoint set after the resumed run.
|
||||
pub retain: Duration,
|
||||
|
||||
@@ -1002,8 +1002,11 @@ impl SelectedCheckpoint {
|
||||
if !host_matches {
|
||||
return None;
|
||||
}
|
||||
let kernel_timings = timed.then_some(&mut timings.suffix_kernel);
|
||||
let (execution, layout) = measure(&mut timings.suffix_kernel_validation, timed, || {
|
||||
entry.splice_settled_suffix_with_layout(&old.entry, &completed.result.execution)
|
||||
entry.splice_settled_suffix_observed(
|
||||
&old.entry, &completed.result.execution, kernel_timings,
|
||||
)
|
||||
})?;
|
||||
Some((completed, old, execution, layout))
|
||||
}) else {
|
||||
|
||||
Reference in new issue
Block a user