MCPcopy Create free account
hub / github.com/apache/brpc / submit

Method submit

src/brpc/span.cpp:337–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void Span::submit(int64_t cpuwide_us) {
338 // Note: this method is not called for client-side spans.
339 EndAsParent();
340 SpanContainer* container = new(std::nothrow) SpanContainer(shared_from_this());
341 // If memory allocation fails, the server span will not be submitted for persistence.
342 // The server span will be destroyed later when its shared_ptr refcount drops to zero
343 // Child spans (held in _client_list) will also be destroyed when
344 // their refcounts reach zero.
345 if (container) {
346 container->submit(cpuwide_us);
347 }
348}
349
350void Span::Annotate(const char* fmt, ...) {
351 const int64_t anno_time = butil::cpuwide_time_us() + _base_real_us;

Callers 8

SubmitMethod · 0.45
ProcessHttpRequestFunction · 0.45
ProcessSofaRequestFunction · 0.45
ProcessNsheadRequestFunction · 0.45
ProcessRpcRequestFunction · 0.45
ProcessHuluRequestFunction · 0.45
submit_contentionFunction · 0.45
start_executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected