Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for StartLine (0.21 sec)

  1. src/internal/profile/graph.go

    	if line.Function == nil {
    		return &NodeInfo{Address: l.Address}
    	}
    	ni := &NodeInfo{
    		Address: l.Address,
    		Lineno:  int(line.Line),
    		Name:    line.Function.Name,
    	}
    	ni.StartLine = int(line.Function.StartLine)
    	return ni
    }
    
    // Sum adds the flat and cum values of a set of nodes.
    func (ns Nodes) Sum() (flat int64, cum int64) {
    	for _, n := range ns {
    		flat += n.Flat
    		cum += n.Cum
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 20:59:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/heading.go

    	peek := s
    	if p.nextB() == p.para() && peek.trimSetext(&n) {
    		p.closeBlock()
    		para, ok := p.last().(*Paragraph)
    		if !ok {
    			return s, false
    		}
    		p.deleteLast()
    		p.doneBlock(&Heading{Position{para.StartLine, p.lineno}, n, para.Text, ""})
    		return line{}, true
    	}
    	return s, false
    }
    
    func (s *line) trimHeading(width *int) bool {
    	t := *s
    	t.trimSpace(0, 3, false)
    	if !t.trim('#') {
    		return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/rsc.io/markdown/parse.go

    }
    
    type mdState struct {
    	prefix  string
    	prefix1 string // for first line only
    	bullet  rune   // for list items
    	num     int    // for numbered list items
    }
    
    type Position struct {
    	StartLine int
    	EndLine   int
    }
    
    func (p Position) Pos() Position {
    	return p
    }
    
    type buildState interface {
    	blocks() []Block
    	pos() Position
    	last() Block
    	deleteLast()
    
    	link(label string) *Link
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/log/slog/logger_test.go

    }
    
    func TestCallDepth(t *testing.T) {
    	ctx := context.Background()
    	h := &captureHandler{}
    	var startLine int
    
    	check := func(count int) {
    		t.Helper()
    		const wantFunc = "log/slog.TestCallDepth"
    		const wantFile = "logger_test.go"
    		wantLine := startLine + count*2
    		got := h.r.source()
    		gotFile := filepath.Base(got.File)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  5. src/internal/profile/encode.go

    }
    
    func (p *Function) encode(b *buffer) {
    	encodeUint64Opt(b, 1, p.ID)
    	encodeInt64Opt(b, 2, p.nameX)
    	encodeInt64Opt(b, 3, p.systemNameX)
    	encodeInt64Opt(b, 4, p.filenameX)
    	encodeInt64Opt(b, 5, p.StartLine)
    }
    
    var functionDecoder = []decoder{
    	nil, // 0
    	// optional uint64 id = 1
    	func(b *buffer, m message) error { return decodeUint64(b, &m.(*Function).ID) },
    	// optional int64 function_name = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    		ni.File = filepath.Clean(fname)
    	}
    	if o.OrigFnNames {
    		ni.OrigName = line.Function.SystemName
    	}
    	if o.ObjNames || (ni.Name == "" && ni.OrigName == "") {
    		ni.Objfile = objfile
    		ni.StartLine = int(line.Function.StartLine)
    	}
    	return ni
    }
    
    type tags struct {
    	t    []*Tag
    	flat bool
    }
    
    func (t tags) Len() int      { return len(t.t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  7. src/internal/profile/profile.go

    	Line     int64
    
    	functionIDX uint64
    }
    
    // Function corresponds to Profile.Function
    type Function struct {
    	ID         uint64
    	Name       string
    	SystemName string
    	Filename   string
    	StartLine  int64
    
    	nameX       int64
    	systemNameX int64
    	filenameX   int64
    }
    
    // Parse parses a profile and checks for its validity. The input must be an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. src/runtime/pprof/proto.go

    	// Location message, so record new functions we encounter and
    	// write them out after the Location.
    	type newFunc struct {
    		id         uint64
    		name, file string
    		startLine  int64
    	}
    	newFuncs := make([]newFunc, 0, 8)
    
    	id := uint64(len(b.locs)) + 1
    	b.locs[addr] = locInfo{
    		id:                     id,
    		pcs:                    append([]uintptr{}, b.deck.pcs...),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 13 20:40:52 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    }
    
    func (p *Function) encode(b *buffer) {
    	encodeUint64Opt(b, 1, p.ID)
    	encodeInt64Opt(b, 2, p.nameX)
    	encodeInt64Opt(b, 3, p.systemNameX)
    	encodeInt64Opt(b, 4, p.filenameX)
    	encodeInt64Opt(b, 5, p.StartLine)
    }
    
    var functionDecoder = []decoder{
    	nil, // 0
    	// optional uint64 id = 1
    	func(b *buffer, m message) error { return decodeUint64(b, &m.(*Function).ID) },
    	// optional int64 function_name = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    	if start == 0 {
    		if fns[0].Info.StartLine != 0 {
    			start = fns[0].Info.StartLine
    		} else {
    			start = fns[0].Info.Lineno - margin
    		}
    	} else {
    		start -= margin
    	}
    	if end == 0 {
    		end = fns[0].Info.Lineno
    	}
    	end += margin
    	for _, n := range fns {
    		lineno := n.Info.Lineno
    		nodeStart := n.Info.StartLine
    		if nodeStart == 0 {
    			nodeStart = lineno - margin
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
Back to top