sorting needs to count as part of the disk job to get proper proportions of disk thread time metrics
This commit is contained in:
@@ -1611,6 +1611,10 @@ namespace libtorrent
|
|||||||
|
|
||||||
disk_io_job j;
|
disk_io_job j;
|
||||||
|
|
||||||
|
ptime now = time_now_hires();
|
||||||
|
m_queue_time.add_sample(total_microseconds(now - j.start_time));
|
||||||
|
ptime operation_start = now;
|
||||||
|
|
||||||
if (!m_jobs.empty())
|
if (!m_jobs.empty())
|
||||||
{
|
{
|
||||||
// we have a job in the job queue. If it's
|
// we have a job in the job queue. If it's
|
||||||
@@ -1751,13 +1755,8 @@ namespace libtorrent
|
|||||||
m_ios.post(m_queue_callback);
|
m_ios.post(m_queue_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
ptime now = time_now_hires();
|
|
||||||
m_queue_time.add_sample(total_microseconds(now - j.start_time));
|
|
||||||
|
|
||||||
flush_expired_pieces();
|
flush_expired_pieces();
|
||||||
|
|
||||||
ptime operation_start = now;
|
|
||||||
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
TORRENT_ASSERT(j.storage
|
TORRENT_ASSERT(j.storage
|
||||||
|
Reference in New Issue
Block a user