diff options
| author | metamuffin <metamuffin@disroot.org> | 2023-06-11 22:41:14 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2023-06-11 22:41:14 +0200 | 
| commit | 3cdcca9118e6e84c09cebab501142bd8cef47c0f (patch) | |
| tree | ebded9907e02e8449e6387004892771e31089284 /remuxer | |
| parent | bcf0f3526883af82f129d0ddb0de484ded80fc4d (diff) | |
| download | jellything-3cdcca9118e6e84c09cebab501142bd8cef47c0f.tar jellything-3cdcca9118e6e84c09cebab501142bd8cef47c0f.tar.bz2 jellything-3cdcca9118e6e84c09cebab501142bd8cef47c0f.tar.zst | |
show timing for debug formatter
Diffstat (limited to 'remuxer')
| -rw-r--r-- | remuxer/src/lib.rs | 17 | 
1 files changed, 4 insertions, 13 deletions
| diff --git a/remuxer/src/lib.rs b/remuxer/src/lib.rs index 92b9697..5352b14 100644 --- a/remuxer/src/lib.rs +++ b/remuxer/src/lib.rs @@ -93,10 +93,7 @@ impl RemuxerContext {              })              .collect::<anyhow::Result<Vec<_>>>()?; -        info!( -            "(perf) prepare inputs: {}ms", -            (Instant::now() - timing_cp).as_millis() -        ); +        info!("(perf) prepare inputs: {:?}", Instant::now() - timing_cp);          let timing_cp = Instant::now();          output.write_tag(&MatroskaTag::Ebml(Master::Collected(vec![ @@ -200,10 +197,7 @@ impl RemuxerContext {              info!("segment layout computed ({} clusters)", clusters.len());              clusters          }; -        info!( -            "(perf) compute segment layout: {}ms", -            (Instant::now() - timing_cp).as_millis() -        ); +        info!("(perf) compute segment layout: {:?}", Instant::now() - timing_cp);          let timing_cp = Instant::now();          let max_cue_size = 4 // cues id @@ -271,7 +265,7 @@ impl RemuxerContext {          if skip != 0 {              info!("skipping {skip} clusters"); -            output.seek(SeekFrom::Start(segment_layout[skip].position as u64))?; +            output.seek(SeekFrom::Start((segment_layout[skip].position + segment_offset) as u64))?;          }          struct ReaderD<'a> { @@ -300,10 +294,7 @@ impl RemuxerContext {              })              .collect::<anyhow::Result<Vec<_>>>()?; -        info!( -            "(perf) seek inputs: {}ms", -            (Instant::now() - timing_cp).as_millis() -        ); +        info!("(perf) seek inputs: {:?}", Instant::now() - timing_cp);          for (cluster_index, cluster) in segment_layout.into_iter().enumerate().skip(skip) {              debug!( | 
