Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 116 for relocs (0.19 sec)

  1. src/database/sql/convert_test.go

    	// and gc. With 32-bit words there are more convT2E allocs, and
    	// with gccgo, only pointers currently go in interface data.
    	// So only care on amd64 gc for now.
    	measureAllocs := false
    	switch runtime.GOARCH {
    	case "amd64", "arm64":
    		measureAllocs = runtime.Compiler == "gc"
    	}
    
    	if n > 0.5 && measureAllocs {
    		t.Fatalf("allocs = %v; want 0", n)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. src/runtime/map_test.go

    	})
    	if n != 0 {
    		t.Fatalf("mapliteral: want 0 allocs, got %v", n)
    	}
    	n = testing.AllocsPerRun(1000, func() {
    		m := make(map[int]int)
    		m[0] = 0
    	})
    	if n != 0 {
    		t.Fatalf("no hint: want 0 allocs, got %v", n)
    	}
    	n = testing.AllocsPerRun(1000, func() {
    		m := make(map[int]int, 8)
    		m[0] = 0
    	})
    	if n != 0 {
    		t.Fatalf("with small hint: want 0 allocs, got %v", n)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. fastapi/openapi/docs.py

        <!--
        ReDoc doesn't change outer page styles
        -->
        <style>
          body {{
            margin: 0;
            padding: 0;
          }}
        </style>
        </head>
        <body>
        <noscript>
            ReDoc requires Javascript to function. Please enable it to browse the documentation.
        </noscript>
        <redoc spec-url="{openapi_url}"></redoc>
        <script src="{redoc_js_url}"> </script>
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. src/runtime/heapdump.go

    	dumpint(m.LastGC)
    	dumpint(m.PauseTotalNs)
    	for i := 0; i < 256; i++ {
    		dumpint(m.PauseNs[i])
    	}
    	dumpint(uint64(m.NumGC))
    }
    
    func dumpmemprof_callback(b *bucket, nstk uintptr, pstk *uintptr, size, allocs, frees uintptr) {
    	stk := (*[100000]uintptr)(unsafe.Pointer(pstk))
    	dumpint(tagMemProf)
    	dumpint(uint64(uintptr(unsafe.Pointer(b))))
    	dumpint(uint64(size))
    	dumpint(uint64(nstk))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/crypto/rsa/rsa_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if allocs := testing.AllocsPerRun(100, func() {
    		p, err := DecryptPKCS1v15(nil, test2048Key, c)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !bytes.Equal(p, m) {
    			t.Fatalf("unexpected output: %q", p)
    		}
    	}); allocs > 10 {
    		t.Errorf("expected less than 10 allocations, got %0.1f", allocs)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:55:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  6. src/internal/reflectlite/all_test.go

    		t.Skip("skipping malloc count in short mode")
    	}
    	if runtime.GOMAXPROCS(0) > 1 {
    		t.Skip("skipping; GOMAXPROCS>1")
    	}
    	i := -1
    	allocs := testing.AllocsPerRun(n, func() {
    		f(i)
    		i++
    	})
    	if allocs > 0 {
    		t.Errorf("%d iterations: got %v mallocs, want 0", n, allocs)
    	}
    }
    
    func TestAllocations(t *testing.T) {
    	noAlloc(t, 100, func(j int) {
    		var i any
    		var v Value
    
    		i = []int{j, j, j}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  7. src/runtime/metrics/description.go

    			"math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and " +
    			"the runtime/debug.SetMemoryLimit function.",
    		Kind: KindUint64,
    	},
    	{
    		Name: "/gc/heap/allocs-by-size:bytes",
    		Description: "Distribution of heap allocations by approximate size. " +
    			"Bucket counts increase monotonically. " +
    			"Note that this does not include tiny objects as defined by " +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:59:12 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  8. src/runtime/sys_openbsd_ppc64.s

    // It just does some low-level setup and then calls mstart.
    // Note: called with the C calling convention.
    TEXT runtime·mstart_stub(SB),NOSPLIT,$32
    	// R3 points to the m.
    	// We are already on m's g0 stack.
    
    	// Go relies on R0 being $0.
    	XOR	R0, R0
    
    	// TODO(jsing): Save callee-save registers (R14-R31, F14-F31, V20-V31).
    
    	MOVD    m_g0(R3), g
    	BL	runtime·save_g(SB)
    
    	BL	runtime·mstart(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:48:11 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  9. src/runtime/hash_test.go

    				m[k] = true
    			}
    		}
    		if len(m) != 70 {
    			t.Errorf("bad test: (8 choose 4) should be 70, not %d", len(m))
    		}
    	}
    	if n := testing.AllocsPerRun(10, f); n > 6 {
    		t.Errorf("too many allocs %f - hash not balanced", n)
    	}
    }
    func TestStructHash(t *testing.T) {
    	// See the comment in TestArrayHash.
    	f := func() {
    		type key struct {
    			a, b, c, d, e, f, g, h string
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. src/bytes/buffer_test.go

    			readBytes, _ := buf.Read(tmp)
    			yBytes := Repeat(y, growLen)
    			allocs := testing.AllocsPerRun(100, func() {
    				buf.Grow(growLen)
    				buf.Write(yBytes)
    			})
    			// Check no allocation occurs in write, as long as we're single-threaded.
    			if allocs != 0 {
    				t.Errorf("allocation occurred during write")
    			}
    			// Check that buffer has correct data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top