Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for StartLine (0.17 sec)

  1. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    		SystemName: src.SystemName,
    		Filename:   src.Filename,
    		StartLine:  src.StartLine,
    	}
    	pm.functions[k] = f
    	pm.functionsByID[src.ID] = f
    	pm.p.Function = append(pm.p.Function, f)
    	return f
    }
    
    // key generates a struct to be used as a key for maps.
    func (f *Function) key() functionKey {
    	return functionKey{
    		f.StartLine,
    		f.Name,
    		f.SystemName,
    		f.Filename,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. 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)
  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/compile/internal/syntax/scanner.go

    func (s *scanner) next() {
    	nlsemi := s.nlsemi
    	s.nlsemi = false
    
    redo:
    	// skip white space
    	s.stop()
    	startLine, startCol := s.pos()
    	for s.ch == ' ' || s.ch == '\t' || s.ch == '\n' && !nlsemi || s.ch == '\r' {
    		s.nextch()
    	}
    
    	// token start
    	s.line, s.col = s.pos()
    	s.blank = s.line > startLine || startCol == colbase
    	s.start()
    	if isLetter(s.ch) || s.ch >= utf8.RuneSelf && s.atIdentChar(true) {
    		s.nextch()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
Back to top