Commit 2e0eee0c authored by Eric Cano's avatar Eric Cano
Browse files

Added differentiated timer for waiting to data and waiting for free memory.

Only one applies at a time in read or write context, but the naming will make the code more undrestandable.
parent 685352f3
......@@ -46,8 +46,10 @@ namespace tapeserver {
double unloadTime;
/** Unmount time, in seconds. */
double unmountTime;
/** Cumulated time spent waiting for data blocks/free memory. */
/** Cumulated time spent waiting for data blocks. */
double waitDataTime;
/** Cumulated time spent waiting for free memory. */
double waitFreeMemoryTime;
/** Cumulated time spent by the tape thread waiting for a task. */
double waitInstructionsTime;
/** Cumulated time spent reporting */
......@@ -236,7 +236,7 @@ private:
.add("waitInstructionsTime", m_stats.waitInstructionsTime)
.add("checksumingTime", m_stats.checksumingTime)
.add("transferTime", m_stats.transferTime)
.add("waitDataTime", m_stats.waitDataTime)
.add("waitFreeMemoryTime", m_stats.waitFreeMemoryTime)
.add("waitReportingTime", m_stats.waitReportingTime)
.add("flushTime", m_stats.flushTime)
.add("unloadTime", m_stats.unloadTime)
......@@ -96,7 +96,7 @@ public:
while (stillReading) {
// Get a memory block and add information to its metadata
localStats.waitDataTime += timer.secs(utils::Timer::resetCounter);
localStats.waitFreeMemoryTime += timer.secs(utils::Timer::resetCounter);
mb->m_fSeq = m_fileToRecall->fseq();
mb->m_fileBlock = fileBlock++;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment