MCPcopy Create free account
hub / github.com/apache/thrift / profile_generic_protocol

Function profile_generic_protocol

lib/cpp/src/thrift/VirtualProfiling.cpp:286–292  ·  view source on GitHub ↗

* Record a call to a template processor with a protocol that is not the one * specified in the template parameter. * * This method is invoked by the T_GENERIC_PROTOCOL() macro. */

Source from the content-addressed store, hash-verified

284 * This method is invoked by the T_GENERIC_PROTOCOL() macro.
285 */
286void profile_generic_protocol(const std::type_info& template_type,
287 const std::type_info& prot_type) {
288 int const skip = 1; // ignore this frame
289 Backtrace bt(skip);
290 Key k(&bt, template_type, prot_type);
291 _record_backtrace(&generic_calls, generic_calls_mutex, &k);
292}
293
294/**
295 * Print the recorded profiling information to the specified file.

Callers

nothing calls this directly

Calls 1

_record_backtraceFunction · 0.85

Tested by

no test coverage detected