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

Method print

lib/cpp/src/thrift/VirtualProfiling.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void print(FILE* f, int indent = 0, int start = 0) const {
95 char** strings = backtrace_symbols(callers_, numCallers_);
96 if (strings) {
97 start += skip_;
98 if (start < 0) {
99 start = 0;
100 }
101 for (int n = start; n < numCallers_; ++n) {
102 fprintf(f, "%*s#%-2d %s\n", indent, "", n, strings[n]);
103 }
104 free(strings);
105 } else {
106 fprintf(f, "%*s<failed to determine symbols>\n", indent, "");
107 }
108 }
109
110 int getDepth() const { return numCallers_ - skip_; }
111

Callers 15

profile_print_infoFunction · 0.45
testVoidMethod · 0.45
testStringMethod · 0.45
testBoolMethod · 0.45
testByteMethod · 0.45
testI32Method · 0.45
testI64Method · 0.45
testDoubleMethod · 0.45
testBinaryMethod · 0.45
testStructMethod · 0.45
testNestMethod · 0.45
testMapMethod · 0.45

Calls

no outgoing calls

Tested by 15

testVoidMethod · 0.36
testStringMethod · 0.36
testBoolMethod · 0.36
testByteMethod · 0.36
testI32Method · 0.36
testI64Method · 0.36
testDoubleMethod · 0.36
testBinaryMethod · 0.36
testStructMethod · 0.36
testNestMethod · 0.36
testMapMethod · 0.36
testStringMapMethod · 0.36