MCPcopy Create free account
hub / github.com/google/pprof / Disasm

Method Disasm

browsertests/testutils.go:97–103  ·  view source on GitHub ↗
(file string, start, end uint64, intelSyntax bool)

Source from the content-addressed store, hash-verified

95}
96
97func (obj fakeObjTool) Disasm(file string, start, end uint64, intelSyntax bool) ([]driver.Inst, error) {
98 return []driver.Inst{
99 {Addr: addrBase + 10, Text: "f1:asm", Function: "F1", Line: 3},
100 {Addr: addrBase + 20, Text: "f2:asm", Function: "F2", Line: 11},
101 {Addr: addrBase + 30, Text: "d3:asm", Function: "F3", Line: 22},
102 }, nil
103}
104
105func makeFakeProfile() *profile.Profile {
106 // Three functions: F1, F2, F3 with three lines, 11, 22, 33.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected