mirror of
				https://github.com/Zygo/bees.git
				synced 2025-10-30 17:50:36 +01:00 
			
		
		
		
	context: don't count MultiLock waiting time in dedup_ms
This was inflating the dedup_ms statistic because it was counting all the resolve time too. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		| @@ -217,11 +217,12 @@ BeesContext::dedup(const BeesRangePair &brp_in) | ||||
| 	THROW_CHECK1(invalid_argument, brp, brp.first.size() == brp.second.size()); | ||||
|  | ||||
| 	BEESCOUNT(dedup_try); | ||||
| 	Timer dedup_timer; | ||||
|  | ||||
| 	BEESNOTE("waiting to dedup " << brp); | ||||
| 	const auto lock = MultiLocker::get_lock("dedupe"); | ||||
|  | ||||
| 	Timer dedup_timer; | ||||
|  | ||||
| 	BEESLOGINFO("dedup: src " << pretty(brp.first.size())  << " [" << to_hex(brp.first.begin())  << ".." << to_hex(brp.first.end())  << "] {" << first_addr  << "} " << name_fd(brp.first.fd()) << "\n" | ||||
| 		 << "       dst " << pretty(brp.second.size()) << " [" << to_hex(brp.second.begin()) << ".." << to_hex(brp.second.end()) << "] {" << second_addr << "} " << name_fd(brp.second.fd())); | ||||
| 	BEESNOTE("dedup: src " << pretty(brp.first.size())  << " [" << to_hex(brp.first.begin())  << ".." << to_hex(brp.first.end())  << "] {" << first_addr  << "} " << name_fd(brp.first.fd()) << "\n" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user