Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,094 for allocations (0.17 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. 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)
  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/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)
  7. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/MyMem.h

     */
    
    /** @file
     *  Memory management functions (user interface).
     *  Two versions of memory allocation/deallocation are available.
     *  If compiled with MEMTRACE defined, CUnit keeps track of all
     *  system allocations & deallocations.  The memory record can
     *  then be reported using CU_CREATE_MEMORY_REPORT.  Otherwise,
     *  standard system memory allocation is used without tracing.
     */
    /** @addtogroup Framework
     * @{
     */
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top