Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for totalTime (0.38 sec)

  1. src/runtime/metrics_test.go

    	}
    	total := gcTotal + scavTotal + stats.IdleTime + stats.UserTime
    	if total != stats.TotalTime {
    		t.Errorf("manually computed overall total does not match TotalTime: %d cpu-ns vs. %d cpu-ns", total, stats.TotalTime)
    	}
    	if total == 0 {
    		t.Error("total time is zero")
    	}
    	if gcTotal == 0 {
    		t.Error("GC total time is zero")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  2. src/runtime/metrics.go

    		},
    		"/cpu/classes/total:cpu-seconds": {
    			deps: makeStatDepSet(cpuStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindFloat64
    				out.scalar = float64bits(nsToSec(in.cpuStats.TotalTime))
    			},
    		},
    		"/cpu/classes/user:cpu-seconds": {
    			deps: makeStatDepSet(cpuStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindFloat64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. src/runtime/runtime2.go

    	safePointFn   func(*p)
    	safePointWait int32
    	safePointNote note
    
    	profilehz int32 // cpu profiling rate
    
    	procresizetime int64 // nanotime() of last change to gomaxprocs
    	totaltime      int64 // ∫gomaxprocs dt up to procresizetime
    
    	// sysmonlock protects sysmon's actions on the runtime.
    	//
    	// Acquire and hold this mutex to block sysmon from interacting
    	// with the rest of the runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  4. cmd/erasure-metadata-utils.go

    		return 0, errPartSizeIndex
    	}
    	if totalSize == -1 {
    		return -1, nil
    	}
    	if totalSize > 0 {
    		// Compute the total count of parts
    		partsCount := totalSize/partSize + 1
    		// Return the part's size
    		switch {
    		case int64(partIndex) < partsCount:
    			currPartSize = partSize
    		case int64(partIndex) == partsCount:
    			// Size of last part
    			currPartSize = totalSize % partSize
    		default:
    			currPartSize = 0
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. internal/ioutil/ioutil.go

    // the file opened for writes with syscall.O_DIRECT flag.
    func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, file *os.File) (int64, error) {
    	if totalSize == 0 {
    		return 0, nil
    	}
    
    	var written int64
    	for {
    		buf := alignedBuf
    		if totalSize > 0 {
    			remaining := totalSize - written
    			if remaining < int64(len(buf)) {
    				buf = buf[:remaining]
    			}
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. cmd/endpoint-ellipses.go

    	if len(totalSizes) == 0 || len(args) == 0 {
    		return nil, errInvalidArgument
    	}
    
    	setIndexes = make([][]uint64, len(totalSizes))
    	for _, totalSize := range totalSizes {
    		// Check if totalSize has minimum range upto setSize
    		if totalSize < setSizes[0] || totalSize < setDriveCount {
    			msg := fmt.Sprintf("Incorrect number of endpoints provided %s", args)
    			return nil, config.ErrInvalidNumberOfErasureEndpoints(nil).Msg(msg)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. src/net/mockserver_test.go

    		fn = conn.Read
    	case "w":
    		defer conn.Close()
    
    		fn = conn.Write
    	default:
    		log.Fatalf("unknown op %q", op)
    	}
    
    	var n int
    	for count := 0; count < totalSize; count += n {
    		if count+chunkSize > totalSize {
    			buf = buf[:totalSize-count]
    		}
    
    		var err error
    		if n, err = fn(buf); err != nil {
    			return
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. pkg/volume/configmap/configmap.go

    		}
    	}
    
    	return payload, nil
    }
    
    func totalBytes(configMap *v1.ConfigMap) int {
    	totalSize := 0
    	for _, value := range configMap.Data {
    		totalSize += len(value)
    	}
    	for _, value := range configMap.BinaryData {
    		totalSize += len(value)
    	}
    
    	return totalSize
    }
    
    // configMapVolumeUnmounter handles cleaning up configMap volumes.
    type configMapVolumeUnmounter struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. src/net/splice_linux_test.go

    	f, err := os.OpenFile(os.DevNull, os.O_WRONLY, 0)
    	if err != nil {
    		b.Fatal(err)
    	}
    	defer f.Close()
    
    	totalSize := b.N * bench.chunkSize
    
    	client, server := spawnTestSocketPair(b, bench.proto)
    	defer server.Close()
    
    	cleanup, err := startTestSocketPeer(b, client, "w", bench.chunkSize, totalSize)
    	if err != nil {
    		client.Close()
    		b.Fatalf("failed to start splice client: %v", err)
    	}
    	defer cleanup(b)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. cmd/xl-storage-format_test.go

    	compareXLMetaV1(t, unMarshalXLMeta, jsoniterXLMeta)
    }
    
    // Test the predicted part size from the part index
    func TestGetPartSizeFromIdx(t *testing.T) {
    	// Create test cases
    	testCases := []struct {
    		totalSize    int64
    		partSize     int64
    		partIndex    int
    		expectedSize int64
    	}{
    		// Total size is zero
    		{0, 10, 1, 0},
    		// part size 2MiB, total size 4MiB
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top