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

Function profile_virtual_call

lib/cpp/src/thrift/VirtualProfiling.cpp:273–278  ·  view source on GitHub ↗

* Record an unnecessary virtual function call. * * This method is invoked by the T_VIRTUAL_CALL() macro. */

Source from the content-addressed store, hash-verified

271 * This method is invoked by the T_VIRTUAL_CALL() macro.
272 */
273void profile_virtual_call(const std::type_info& type) {
274 int const skip = 1; // ignore this frame
275 Backtrace bt(skip);
276 Key k(&bt, type);
277 _record_backtrace(&virtual_calls, virtual_calls_mutex, &k);
278}
279
280/**
281 * Record a call to a template processor with a protocol that is not the one

Callers

nothing calls this directly

Calls 1

_record_backtraceFunction · 0.85

Tested by

no test coverage detected