Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 343 for Map (0.02 sec)

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

    }
    
    // createNamedEdgeMap builds a map of callsite-callee edge weights from the
    // profile-graph.
    //
    // Caller should ignore the profile if totalWeight == 0.
    func createNamedEdgeMap(g *profile.Graph) (edgeMap NamedEdgeMap, totalWeight int64, err error) {
    	seenStartLine := false
    
    	// Process graph and build various node and edge maps which will
    	// be consumed by AST walk.
    	weight := make(map[NamedCallEdge]int64)
    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/internal/trace/base.go

    type evTable struct {
    	freq    frequency
    	strings dataTable[stringID, string]
    	stacks  dataTable[stackID, stack]
    	pcs     map[uint64]frame
    
    	// extraStrings are strings that get generated during
    	// parsing but haven't come directly from the trace, so
    	// they don't appear in strings.
    	extraStrings   []string
    	extraStringIDs map[string]extraStringID
    	nextExtra      extraStringID
    
    	// expData contains extra unparsed data that is accessible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. src/maps/example_test.go

    	fmt.Println("m3 is:", m3)
    	fmt.Println("m4 is:", m4)
    
    	// Output:
    	// m2 is: map[one:1 two:2]
    	// m1 is: map[one:1 two:2]
    	// m2 is: map[one:100 two:2]
    	// m4 is: map[one:[1 2 3] two:[4 5 6]]
    	// m3 is: map[one:[100 2 3] two:[4 5 6]]
    	// m4 is: map[one:[100 2 3] two:[4 5 6]]
    }
    
    func ExampleDeleteFunc() {
    	m := map[string]int{
    		"one":   1,
    		"two":   2,
    		"three": 3,
    		"four":  4,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:21:56 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    // populates the Samples in a profile. Returns the remainder of the
    // buffer after the samples.
    func parseJavaSamples(pType string, b []byte, p *Profile) ([]byte, map[uint64]*Location, error) {
    	nextNewLine := bytes.IndexByte(b, byte('\n'))
    	locs := make(map[uint64]*Location)
    	for nextNewLine != -1 {
    		line := string(bytes.TrimSpace(b[0:nextNewLine]))
    		if line != "" {
    			sample := javaSampleRx.FindStringSubmatch(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/runtime/pprof/label.go

    	parentLabels := labelValue(ctx)
    	childLabels := make(labelMap, len(parentLabels))
    	// TODO(matloob): replace the map implementation with something
    	// more efficient so creating a child context WithLabels doesn't need
    	// to clone the map.
    	for k, v := range parentLabels {
    		childLabels[k] = v
    	}
    	for _, label := range labels.list {
    		childLabels[label.key] = label.value
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/reflect/asm_loong64.s

    // whether the stack-allocated return space contains valid values for stack
    // scanning.
    //
    // The second local is an abi.RegArgs value whose offset is also known to the
    // runtime, so that a stack map for it can be constructed, since it contains
    // pointers visible to the GC.
    #define LOCAL_RETVALID 40
    #define LOCAL_REGARGS 48
    
    // The frame size of the functions below is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/runtime/mpagealloc_64bit.go

    	need := makeAddrRange(chunksBase+needMin*scSize, chunksBase+needMax*scSize)
    
    	// Subtract any overlap from rounding. We can't re-map memory because
    	// it'll be zeroed.
    	need = need.subtract(have)
    
    	// If we've got something to map, map it, and update the slice bounds.
    	if need.size() != 0 {
    		sysMap(unsafe.Pointer(need.base.addr()), need.size(), sysStat)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt

    # is unable to actually minimize the input. We do this by checking that
    # an expected value appears in the cache. If a dirty coverage map is used
    # (i.e. the coverage map generated during the last minimization step,
    # rather than the map provided with the initial input) then this value
    # is unlikely to appear in the cache, since the map generated during
    # the last minimization step should not increase the coverage.
    
    [short] skip
    [!fuzz-instrumented] skip
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/cmd/internal/pgo/pgo.go

    	CalleeName     string
    	CallSiteOffset int // Line offset from function start line.
    }
    
    // NamedEdgeMap contains all unique call edges in the profile and their
    // edge weight.
    type NamedEdgeMap struct {
    	Weight map[NamedCallEdge]int64
    
    	// ByWeight lists all keys in Weight, sorted by edge weight from
    	// highest to lowest.
    	ByWeight []NamedCallEdge
    }
    
    func emptyProfile() *Profile {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/trace/goroutinegen.go

    	globalRangeGenerator
    	globalMetricGenerator
    	stackSampleGenerator[trace.GoID]
    	logEventGenerator[trace.GoID]
    
    	gStates map[trace.GoID]*gState[trace.GoID]
    	focus   trace.GoID
    	filter  map[trace.GoID]struct{}
    }
    
    func newGoroutineGenerator(ctx *traceContext, focus trace.GoID, filter map[trace.GoID]struct{}) *goroutineGenerator {
    	gg := new(goroutineGenerator)
    	rg := func(ev *trace.Event) trace.GoID {
    		return ev.Goroutine()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top