coderex2522 commented on code in PR #1158:
URL: https://github.com/apache/orc/pull/1158#discussion_r898629880


##########
tools/src/ToolsHelper.cc:
##########
@@ -80,10 +83,25 @@ bool parseOptions(int* argc, char** argv[], uint64_t* 
batchSize, orc::RowReaderO
         }
         break;
       }
+      case 'm' : {
+        *showMetrics = true;
+        break;
+      }
       default: break;
     }
   } while (opt != -1);
   *argc -= optind;
   *argv += optind;
   return true;
 }
+
+void printReaderMetrics(std::ostream& out, const orc::ReaderMetrics& metrics) {
+  out << "ReaderCount: " << metrics.ReaderCount << std::endl;
+  out << "ElapsedTimeUs: " << metrics.ReaderInclusiveLatencyUs << std::endl;

Review Comment:
   The output of time metrics is uniformly changed to be in seconds.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to