Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,133 for Allocations (0.22 sec)

  1. src/runtime/checkptr_test.go

    		{"CheckPtrAlignmentNilPtr", ""},
    		{"CheckPtrArithmetic", "fatal error: checkptr: pointer arithmetic result points to invalid allocation\n"},
    		{"CheckPtrArithmetic2", "fatal error: checkptr: pointer arithmetic result points to invalid allocation\n"},
    		{"CheckPtrSize", "fatal error: checkptr: converted pointer straddles multiple allocations\n"},
    		{"CheckPtrSmall", "fatal error: checkptr: pointer arithmetic computed bad pointer value\n"},
    		{"CheckPtrSliceOK", ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. test/heapsampling.go

    // the named function are consistent with count contiguous allocations
    // of the specified sizes.
    // Check multiple functions and only report consistent failures across
    // multiple tests.
    // Look only at samples that include the named frames, and group the
    // allocations by their line number. All these allocations are done from
    // the same leaf function, so their line numbers are the same.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  3. src/testing/allocs.go

    package testing
    
    import (
    	"runtime"
    )
    
    // AllocsPerRun returns the average number of allocations during calls to f.
    // Although the return value has type float64, it will always be an integral value.
    //
    // To compute the number of allocations, the function will first be run once as
    // a warm-up. The average number of allocations over the specified number of
    // runs will then be measured and returned.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  4. src/log/slog/internal/benchmarks/benchmarks_test.go

    )
    
    func init() {
    	flag.BoolVar(&internal.IgnorePC, "nopc", false, "do not invoke runtime.Callers")
    }
    
    // We pass Attrs inline because it affects allocations: building
    // up a list outside of the benchmarked code and passing it in with "..."
    // reduces measured allocations.
    
    func BenchmarkAttrs(b *testing.B) {
    	ctx := context.Background()
    	for _, handler := range []struct {
    		name     string
    		h        slog.Handler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go

    		t.Run(name, func(t *testing.T) {
    			var actualModel Model
    			for _, resources := range tc.resources {
    				AddResources(&actualModel, resources)
    			}
    			for _, allocation := range tc.allocations {
    				AddAllocation(&actualModel, allocation)
    			}
    
    			require.Equal(t, tc.expectModel, actualModel)
    		})
    	}
    
    }
    
    func TestController(t *testing.T) {
    	filterAny := &resourceapi.NamedResourcesFilter{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. src/internal/poll/errno_unix.go

    //go:build unix || wasip1
    
    package poll
    
    import "syscall"
    
    // Do the interface allocations only once for common
    // Errno values.
    var (
    	errEAGAIN error = syscall.EAGAIN
    	errEINVAL error = syscall.EINVAL
    	errENOENT error = syscall.ENOENT
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:40 UTC 2023
    - 696 bytes
    - Viewed (0)
  7. src/internal/poll/errno_windows.go

    //go:build windows
    
    package poll
    
    import "syscall"
    
    // Do the interface allocations only once for common
    // Errno values.
    
    var (
    	errERROR_IO_PENDING error = syscall.Errno(syscall.ERROR_IO_PENDING)
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 725 bytes
    - Viewed (0)
  8. cmd/url_test.go

    	b.StopTimer()
    }
    
    // BenchmarkURLQuery - benchmark URL memory allocations
    func BenchmarkURLQuery(b *testing.B) {
    	req, err := http.NewRequest(http.MethodGet, "http://localhost:9000/bucket/name?uploadId=upload&partNumber=1", http.NoBody)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	// benchmark utility which helps obtain number of allocations and bytes allocated per ops.
    	b.ReportAllocs()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. test/tinyfin.go

    // run
    
    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test finalizers work for tiny (combined) allocations.
    
    package main
    
    import (
    	"runtime"
    	"time"
    )
    
    func main() {
    	// Does not work on gccgo due to partially conservative GC.
    	// Try to enable when we have fully precise GC.
    	if runtime.Compiler == "gccgo" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 18:57:18 UTC 2015
    - 1.6K bytes
    - Viewed (0)
  10. manifests/addons/dashboards/pilot.libsonnet

        row.new('Resource Usage')
        + row.withPanels([
          panels.timeSeries.bytes('Memory Usage', queries.goMemoryUsage, 'Memory usage of each running instance'),
          panels.timeSeries.allocations('Memory Allocations', queries.goAllocations, 'Details about memory allocations'),
          panels.timeSeries.base('CPU Usage', queries.cpuUsage, 'CPU usage of each running instance'),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top