Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 201 for Map (0.02 sec)

  1. 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)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    // license that can be found in the LICENSE file.
    
    package counter
    
    import (
    	"bytes"
    	"fmt"
    	"strings"
    	"unsafe"
    
    	"golang.org/x/telemetry/internal/mmap"
    )
    
    type File struct {
    	Meta  map[string]string
    	Count map[string]uint64
    }
    
    func Parse(filename string, data []byte) (*File, error) {
    	if !bytes.HasPrefix(data, []byte(hdrPrefix)) || len(data) < pageSize {
    		if len(data) < pageSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/reflect/type_test.go

    		{"struct{}", args{reflect.TypeOf(struct{}{})}, true},
    		{"struct{i int; s S}", args{reflect.TypeOf(struct {
    			i int
    			s S
    		}{})}, true},
    		{"map[int][int]", args{reflect.TypeOf(map[int]int{})}, false},
    		{"[4]chan int", args{reflect.TypeOf([4]chan int{})}, true},
    		{"[0]struct{_ S}", args{reflect.TypeOf([0]struct {
    			_ S
    		}{})}, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/internal/reflectlite/reflect_mirror_test.go

    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    	v.m = make(map[string]map[string]bool)
    
    	return v
    }
    func (v visitor) filter(name string) bool {
    	for _, typeName := range typeNames {
    		if typeName == name {
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/internal/coverage/rtcov/rtcov.go

    		CounterMode:        cmode,
    		CounterGranularity: cgran,
    	})
    	if pkgid != -1 {
    		if Meta.PkgMap == nil {
    			Meta.PkgMap = make(map[int]int)
    		}
    		if _, ok := Meta.PkgMap[pkgid]; ok {
    			return 0
    		}
    		// Record the real slot (position on meta-list) for this
    		// package; we'll use the map to fix things up later on.
    		Meta.PkgMap[pkgid] = slot
    	}
    
    	// ID zero is reserved as invalid.
    	return uint32(slot + 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/net/rpc/jsonrpc/client.go

    	mutex   sync.Mutex        // protects pending
    	pending map[uint64]string // map request id to method name
    }
    
    // NewClientCodec returns a new [rpc.ClientCodec] using JSON-RPC on conn.
    func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec {
    	return &clientCodec{
    		dec:     json.NewDecoder(conn),
    		enc:     json.NewEncoder(conn),
    		c:       conn,
    		pending: make(map[uint64]string),
    	}
    }
    
    type clientRequest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/internal/trace/reader.go

    			go121Events: convertOldFormat(tr),
    		}, nil
    	case version.Go122, version.Go123:
    		return &Reader{
    			r: br,
    			order: ordering{
    				mStates:     make(map[ThreadID]*mState),
    				pStates:     make(map[ProcID]*pState),
    				gStates:     make(map[GoID]*gState),
    				activeTasks: make(map[TaskID]taskState),
    			},
    			// Don't emit a sync event when we first go to emit events.
    			emittedSync: true,
    		}, nil
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. test/linknameasm.dir/x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that a linkname applied on an assembly declaration
    // does not affect stack map generation.
    
    package main
    
    import (
    	"runtime"
    	_ "unsafe"
    )
    
    //go:linkname asm
    func asm(*int)
    
    func main() {
    	x := new(int)
    	asm(x)
    }
    
    // called from asm
    func callback() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 451 bytes
    - Viewed (0)
  9. src/cmd/fix/main.go

    		os.Exit(exitCode)
    	}
    
    	sort.Sort(byDate(fixes))
    
    	if *allowedRewrites != "" {
    		allowed = make(map[string]bool)
    		for _, f := range strings.Split(*allowedRewrites, ",") {
    			allowed[f] = true
    		}
    	}
    
    	if *forceRewrites != "" {
    		force = make(map[string]bool)
    		for _, f := range strings.Split(*forceRewrites, ",") {
    			force[f] = true
    		}
    	}
    
    	if flag.NArg() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/runtime/symtabinl_test.go

    	f := findfunc(pc1)
    	if !f.valid() {
    		t.Fatalf("failed to resolve tiuTest at PC %#x", pc1)
    	}
    
    	want := map[string]int{
    		"tiuInlined1:3 tiuTest:10":               0,
    		"tiuInlined1:3 tiuInlined2:6 tiuTest:11": 0,
    		"tiuInlined2:7 tiuTest:11":               0,
    		"tiuTest:12":                             0,
    	}
    	wantStart := map[string]int{
    		"tiuInlined1": 2,
    		"tiuInlined2": 5,
    		"tiuTest":     9,
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top