mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-03 19:50:34 +01:00 
			
		
		
		
	context: report time in scan_one_extent
Add yet another field to the scan/skip report line: the wallclock time used to process the extent ref. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -358,6 +358,8 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e)
 | 
			
		||||
	BEESTRACE("scan bfr " << bfr);
 | 
			
		||||
	BEESCOUNT(scan_extent);
 | 
			
		||||
 | 
			
		||||
	Timer one_timer;
 | 
			
		||||
 | 
			
		||||
	// We keep moving this method around
 | 
			
		||||
	auto m_ctx = shared_from_this();
 | 
			
		||||
 | 
			
		||||
@@ -854,7 +856,8 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e)
 | 
			
		||||
			<< pretty(e.size()) << " "
 | 
			
		||||
			<< dedupe_list.size() << "d" << copy_list.size() << "c"
 | 
			
		||||
			<< ((bytes_zeroed + BLOCK_SIZE_SUMS - 1) / BLOCK_SIZE_SUMS) << "p"
 | 
			
		||||
			<< (extent_compressed ? "z {" : " {")
 | 
			
		||||
			<< (extent_compressed ? "z " : " ")
 | 
			
		||||
			<< one_timer << "s {"
 | 
			
		||||
			<< to_hex(e.bytenr()) << "+" << to_hex(e.offset()) << "} "
 | 
			
		||||
			<< to_hex(e.begin()) << " [" << bar << "] " << to_hex(e.end())
 | 
			
		||||
			<< ' ' << name_fd(bfr.fd())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user