func printSource(w io.Writer, rpt *Report) error { … }
type sourcePrinter …
type addrInfo …
type instructionInfo …
type sourceFile …
type sourceInst …
type sourceFunction …
type addressRange …
type WebListData …
type WebListFile …
type WebListFunc …
type WebListLine …
type WebListInstruction …
type WebListCall …
func MakeWebList(rpt *Report, obj plugin.ObjTool, maxFiles int) (WebListData, error) { … }
func newSourcePrinter(rpt *Report, obj plugin.ObjTool, sourcePath string) *sourcePrinter { … }
func (sp *sourcePrinter) close() { … }
func (sp *sourcePrinter) expandAddresses(rpt *Report, addrs map[uint64]addrInfo, flat map[uint64]int64) { … }
func (sp *sourcePrinter) addStack(addr uint64, frames []plugin.Frame) { … }
const synthAsm …
func (sp *sourcePrinter) handleUnprocessed(addrs map[uint64]addrInfo, unprocessed []uint64) { … }
func (sp *sourcePrinter) splitIntoRanges(prof *profile.Profile, addrMap map[uint64]addrInfo, flat map[uint64]int64) ([]addressRange, []uint64) { … }
func (sp *sourcePrinter) initSamples(flat, cum map[uint64]int64) { … }
func (sp *sourcePrinter) generate(maxFiles int, rpt *Report) WebListData { … }
func (sp *sourcePrinter) generateFile(f *sourceFile, rpt *Report) WebListFile { … }
func (sp *sourcePrinter) functions(f *sourceFile) []sourceFunction { … }
func (sp *sourcePrinter) objectFile(m *profile.Mapping) plugin.ObjFile { … }
func makeWebListLine(lineNo int, flat, cum int64, lineContents string,
assembly []assemblyInstruction, reader *sourceReader, rpt *Report) WebListLine { … }
func makeWebListInstructions(srcIndent int, assembly []assemblyInstruction, reader *sourceReader, rpt *Report) []WebListInstruction { … }
func getSourceFromFile(file string, reader *sourceReader, fns graph.Nodes, start, end int) (graph.Nodes, string, error) { … }
type sourceReader …
func newSourceReader(searchPath, trimPath string) *sourceReader { … }
func (reader *sourceReader) fileError(path string) error { … }
func (reader *sourceReader) line(path string, lineno int) (string, bool) { … }
func openSourceFile(path, searchPath, trim string) (*os.File, error) { … }
func trimPath(path, trimPath, searchPath string) string { … }
func indentation(line string) int { … }
func rightPad(s string, n int) string { … }
func canonicalizeFileName(fname string) string { … }