MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / addRecord

Method addRecord

src/dwarf.cpp:337–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void DwarfParser::addRecord(u32 loc, u32 cfa_reg, int cfa_off, int fp_off, int pc_off) {
338 int cfa = cfa_reg | cfa_off << 8;
339 if (_prev == NULL || (_prev->loc == loc && --_count >= 0) ||
340 _prev->cfa != cfa || _prev->fp_off != fp_off || _prev->pc_off != pc_off) {
341 _prev = addRecordRaw(loc, cfa, fp_off, pc_off);
342 }
343}
344
345FrameDesc* DwarfParser::addRecordRaw(u32 loc, int cfa, int fp_off, int pc_off) {
346 if (_count >= _capacity) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected