mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02: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:
parent
1af5fcdf34
commit
0d3e13cc5f
@ -358,6 +358,8 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e)
|
|||||||
BEESTRACE("scan bfr " << bfr);
|
BEESTRACE("scan bfr " << bfr);
|
||||||
BEESCOUNT(scan_extent);
|
BEESCOUNT(scan_extent);
|
||||||
|
|
||||||
|
Timer one_timer;
|
||||||
|
|
||||||
// We keep moving this method around
|
// We keep moving this method around
|
||||||
auto m_ctx = shared_from_this();
|
auto m_ctx = shared_from_this();
|
||||||
|
|
||||||
@ -854,7 +856,8 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e)
|
|||||||
<< pretty(e.size()) << " "
|
<< pretty(e.size()) << " "
|
||||||
<< dedupe_list.size() << "d" << copy_list.size() << "c"
|
<< dedupe_list.size() << "d" << copy_list.size() << "c"
|
||||||
<< ((bytes_zeroed + BLOCK_SIZE_SUMS - 1) / BLOCK_SIZE_SUMS) << "p"
|
<< ((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.bytenr()) << "+" << to_hex(e.offset()) << "} "
|
||||||
<< to_hex(e.begin()) << " [" << bar << "] " << to_hex(e.end())
|
<< to_hex(e.begin()) << " [" << bar << "] " << to_hex(e.end())
|
||||||
<< ' ' << name_fd(bfr.fd())
|
<< ' ' << name_fd(bfr.fd())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user