MCPcopy Create free account
hub / github.com/apache/brpc / operator()

Method operator()

src/brpc/span.cpp:516–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514
515struct SpanEarlier {
516 bool operator()(const bvar::Collected* c1, const bvar::Collected* c2) const {
517 const SpanContainer* container1 = static_cast<const SpanContainer*>(c1);
518 const SpanContainer* container2 = static_cast<const SpanContainer*>(c2);
519
520 const int64_t time1 = container1->span()->GetStartRealTimeUs();
521 const int64_t time2 = container2->span()->GetStartRealTimeUs();
522
523 return time1 < time2;
524 }
525};
526class SpanPreprocessor : public bvar::CollectorPreprocessor {
527public:

Callers

nothing calls this directly

Calls 2

GetStartRealTimeUsMethod · 0.80
spanMethod · 0.80

Tested by

no test coverage detected