}
}
+void PGMap::overall_cache_io_rate_summary(Formatter *f, ostream *out) const
+{
+ cache_io_rate_summary(f, out, pg_sum_delta, stamp_delta);
+}
+
void PGMap::pool_cache_io_rate_summary(Formatter *f, ostream *out,
uint64_t poolid) const
{
overall_client_io_rate_summary(f, &ssr);
if (!f && ssr.str().length())
*out << " client io " << ssr.str() << "\n";
+
+ ssr.clear();
+ ssr.str("");
+
+ overall_cache_io_rate_summary(f, &ssr);
+ if (!f && ssr.str().length())
+ *out << " cache io " << ssr.str() << "\n";
}
void PGMap::print_oneline_summary(Formatter *f, ostream *out) const
void cache_io_rate_summary(Formatter *f, ostream *out,
const pool_stat_t& delta_sum,
utime_t delta_stamp) const;
+ /**
+ * Obtain a formatted/plain output for the overall cache tier IO, which is
+ * calculated resorting to @p pg_sum_delta and @p stamp_delta.
+ */
+ void overall_cache_io_rate_summary(Formatter *f, ostream *out) const;
/**
* Obtain a formatted/plain output for cache tier IO over a given pool
* with id @p pool_id. We will then obtain pool-specific data