Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 167 for lineFor (0.18 sec)

  1. src/cmd/internal/pgo/pprof.go

    		seenStartLine = seenStartLine || n.Info.StartLine != 0
    
    		canonicalName := n.Info.Name
    		// Create the key to the nodeMapKey.
    		namedEdge := NamedCallEdge{
    			CallerName:     canonicalName,
    			CallSiteOffset: n.Info.Lineno - n.Info.StartLine,
    		}
    
    		for _, e := range n.Out {
    			totalWeight += e.WeightValue()
    			namedEdge.CalleeName = e.Dest.Info.Name
    			// Create new entry or increment existing entry.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/regexp/backtrack.go

    // a bit vector with (length of input) * (length of prog) bits,
    // to make sure it never explores the same (character position, instruction)
    // state multiple times. This limits the search to run in time linear in
    // the length of the test.
    //
    // backtrack is a fast replacement for the NFA code on small
    // regexps when onepass cannot be used.
    
    package regexp
    
    import (
    	"regexp/syntax"
    	"sync"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TopKSelector.java

        }
        return this;
      }
    
      /**
       * Adds each member of {@code elements} as a candidate for the top {@code k} elements. This
       * operation takes amortized linear time in the length of {@code elements}.
       *
       * <p>If all input data to this {@code TopKSelector} is in a single {@code Iterable}, prefer
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    	if i.Address != 0 {
    		name = append(name, fmt.Sprintf("%016x", i.Address))
    	}
    	if fun := i.Name; fun != "" {
    		name = append(name, fun)
    	}
    
    	switch {
    	case i.Lineno != 0:
    		s := fmt.Sprintf("%s:%d", i.File, i.Lineno)
    		if i.Columnno != 0 {
    			s += fmt.Sprintf(":%d", i.Columnno)
    		}
    		// User requested line numbers, provide what we have.
    		name = append(name, s)
    	case i.File != "":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TopKSelector.java

        }
        return this;
      }
    
      /**
       * Adds each member of {@code elements} as a candidate for the top {@code k} elements. This
       * operation takes amortized linear time in the length of {@code elements}.
       *
       * <p>If all input data to this {@code TopKSelector} is in a single {@code Iterable}, prefer
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/runtime/traceback_test.go

    	//nLines := len(lines)
    	off := 0
    	lineNo := 0
    	fatal := func(f string, args ...any) {
    		msg := fmt.Sprintf(f, args...)
    		t.Fatalf("%s (line %d):\n%s", msg, lineNo, tb)
    	}
    	parseFrame := func(funcName, args string) *tbFrame {
    		// Consume file/line/etc
    		if !strings.HasPrefix(tb, "\t") {
    			fatal("missing source line")
    		}
    		_, tb, _ = strings.Cut(tb, "\n")
    		lineNo++
    		inlined := args == "..."
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  7. test/maplinear.go

    		t1 := time.Now()
    		f(n)
    		return time.Since(t1)
    	}
    
    	t0 := time.Now()
    
    	n := tries
    	fails := 0
    	for {
    		t1 := timeF(n)
    		t2 := timeF(2 * n)
    
    		// should be 2x (linear); allow up to 3x
    		if t2 < 3*t1 {
    			if false {
    				fmt.Println(typ, "\t", time.Since(t0))
    			}
    			return
    		}
    		// If n ops run in under a second and the ratio
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/parser_test.go

    	var buf1 bytes.Buffer
    	_, err := Fprint(&buf1, ast1, LineForm)
    	if err != nil {
    		panic(err)
    	}
    	bytes1 := buf1.Bytes()
    
    	ast2, err := Parse(NewFileBase(filename), &buf1, nil, nil, 0)
    	if err != nil {
    		panic(err)
    	}
    
    	var buf2 bytes.Buffer
    	_, err = Fprint(&buf2, ast2, LineForm)
    	if err != nil {
    		panic(err)
    	}
    	bytes2 := buf2.Bytes()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    			fatalf("%s: unexpected: %d-byte uchar type - %s", lineno(pos), t.Size, dtype)
    		}
    		t.Go = c.uint8
    		t.Align = 1
    
    	case *dwarf.UintType:
    		if dt.BitSize > 0 {
    			fatalf("%s: unexpected: %d-bit uint type - %s", lineno(pos), dt.BitSize, dtype)
    		}
    		switch t.Size {
    		default:
    			fatalf("%s: unexpected: %d-byte uint type - %s", lineno(pos), t.Size, dtype)
    		case 1:
    			t.Go = c.uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  10. src/cmd/internal/objfile/goobj.go

    	// Should never be called. We implement Liner below, callers
    	// should use that instead.
    	return 0, nil, nil, fmt.Errorf("pcln not available in go object file")
    }
    
    // Find returns the file name, line, and function data for the given pc.
    // Returns "",0,nil if unknown.
    // This function implements the Liner interface in preference to pcln() above.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top