MCPcopy Index your code
hub / github.com/apache/orc / printReaderMetrics

Function printReaderMetrics

tools/src/ToolsHelper.cc:97–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void printReaderMetrics(std::ostream& out, const orc::ReaderMetrics* metrics) {
98 if (metrics != nullptr) {
99 static const uint64_t US_PER_SECOND = 1000000;
100 out << "ElapsedTimeSeconds: " << metrics->ReaderInclusiveLatencyUs / US_PER_SECOND << std::endl;
101 out << "DecompressionLatencySeconds: " << metrics->DecompressionLatencyUs / US_PER_SECOND
102 << std::endl;
103 out << "DecodingLatencySeconds: " << metrics->DecodingLatencyUs / US_PER_SECOND << std::endl;
104 out << "ByteDecodingLatencySeconds: " << metrics->ByteDecodingLatencyUs / US_PER_SECOND
105 << std::endl;
106 out << "IOBlockingLatencySeconds: " << metrics->IOBlockingLatencyUs / US_PER_SECOND
107 << std::endl;
108 out << "ReaderCall: " << metrics->ReaderCall << std::endl;
109 out << "DecompressionCall: " << metrics->DecompressionCall << std::endl;
110 out << "DecodingCall: " << metrics->DecodingCall << std::endl;
111 out << "ByteDecodingCall: " << metrics->ByteDecodingCall << std::endl;
112 out << "IOCount: " << metrics->IOCount << std::endl;
113 out << "PPD SelectedRowGroupCount: " << metrics->SelectedRowGroupCount << std::endl;
114 out << "PPD EvaluatedRowGroupCount: " << metrics->EvaluatedRowGroupCount << std::endl;
115 }
116}

Callers 1

scanFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected