mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02: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:
parent
c3b664fea5
commit
cfcdac110b
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user