Thank you! And I committed the change :)

@juztas, are you sure you want to keep:

  1. [kB] in B_hit/miss/bypass ... they are not in file_size, and buffer_size (which are also << 10);
  2. the initial line with FILE: ....

One could make -j option take an int argument, to specify pretty-print alignment ... I just use minimal dump (no whitespace, no new lines) now.

{"accesses":[{"B_bypass[kB]":0,"B_hit[kB]":0,"B_miss[kB]":0,"attach":"210928:162058","detach":"210928:162059","duration":"0:00:01","n_ios":1,"n_mrg":0,"record":1},{"B_bypass[kB]":0,"B_hit[kB]":0,"B_miss[kB]":0,"attach":"210928:164632","detach":"210928:164634","duration":"0:00:02","n_ios":1,"n_mrg":0,"record":2},{"B_bypass[kB]":0,"B_hit[kB]":0,"B_miss[kB]":313344,"attach":"210929:080250","detach":"210929:080304","duration":"0:00:14","n_ios":1,"n_mrg":0,"record":3},{"B_bypass[kB]":0,"B_hit[kB]":313344,"B_miss[kB]":4105190,"attach":"210929:080818","detach":"210929:081144","duration":"0:03:26","n_ios":1,"n_mrg":0,"record":4}],"buffer_size":1024,"cksum":"none","created":"Tue Sep 28 16:20:58 2021","file":"../data/store/user/matevz/xmxxx-2018-02.root.cinfo","file_size":4418534,"n_acc_total":4,"n_blocks":4315,"no-cksum-time":"Wed Sep 29 08:02:52 2021","state_complete":"complete","state_percentage":100.0,"version":4}

There is some work one could do to cleanup directory traversal printouts when a directory is given as an argument, in particular, to not print "not a cinfo file" and stat a file if it is directory before trying to read it as cinfo file.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1530#issuecomment-939240079", "url": "https://github.com/xrootd/xrootd/pull/1530#issuecomment-939240079", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1