MCPcopy Create free account
hub / github.com/apache/impala / CheckAscending

Function CheckAscending

be/src/util/runtime-profile-test.cc:961–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959}
960
961static void CheckAscending(const vector<int64_t>& v) {
962 if (v.empty()) return;
963 int64_t prev = v[0];
964 for (int i = 1; i < v.size(); ++i) {
965 EXPECT_LE(prev, v[i]);
966 prev = v[i];
967 }
968}
969
970// Helper for the AggregateEventSequences that verifies the encoded event sequence
971// in the thrift representation when it was merged into the profile at instance offset

Callers 1

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected