Skip to content

Commit

Permalink
XrdApps::Jcache: add average read and readv size to summary output
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters1971 committed Jul 23, 2024
1 parent c144edc commit 330b5e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/XrdApps/XrdClJCachePlugin/file/CacheStats.hh
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ struct CacheStats {
"-------------------------------------------------------------------"
"---- #"
<< std::endl;
oss << "# JCache : avg. bytes read : " << (sStats.readOps.load()?(sStats.bytesCached.load() / sStats.readOps.load()):0.0) << std::endl;
oss << "# JCache : avg. bytes readv : " << (sStats.readVOps.load()?(sStats.bytesCachedV.load() / sStats.readVOps.load()):0.0) << std::endl;
oss << "# "
"-------------------------------------------------------------------"
"---- #"
<< std::endl;

oss << "# JCache : open files read : " << sStats.nreadfiles.load()
<< std::endl;
oss << "# JCache : open unique f. read : " << sStats.UniqueUrls()
Expand Down

0 comments on commit 330b5e8

Please sign in to comment.