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

Method getFrame

lib/cpp/src/thrift/VirtualProfiling.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 int getDepth() const { return numCallers_ - skip_; }
111
112 void* getFrame(int index) const {
113 int adjusted_index = index + skip_;
114 if (adjusted_index < 0 || adjusted_index >= numCallers_) {
115 return nullptr;
116 }
117 return callers_[adjusted_index];
118 }
119
120private:
121 void* callers_[MAX_STACK_DEPTH];

Callers 1

profile_write_pprof_fileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected