Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Microseconds (0.16 sec)

  1. cmd/metrics-v3-system-drive.go

    	labels = append(labels, "api", "")
    	lastIdx := len(labels) - 1
    	for apiName, latency := range disk.Metrics.LastMinute {
    		labels[lastIdx] = "storage." + apiName
    		m.Set(driveAPILatencyMicros, float64(latency.Avg().Microseconds()),
    			labels...)
    	}
    }
    
    func (m *MetricValues) setDriveIOStatMetrics(ioStats driveIOStatMetrics, labels []string) {
    	m.Set(driveReadsPerSec, ioStats.readsPerSec, labels...)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun May 12 17:23:50 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. src/cmd/trace/viewer.go

    		return traceviewer.GRunning
    	default:
    		panic(fmt.Sprintf("unknown GoState: %s", state.String()))
    	}
    }
    
    func viewerTime(t time.Duration) float64 {
    	return float64(t) / float64(time.Microsecond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. tests/test_jsonable_encoder.py

        class ModelWithCustomEncoder(BaseModel):
            dt_field: datetime
    
            @field_serializer("dt_field")
            def serialize_dt_field(self, dt):
                return dt.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
    
        class ModelWithCustomEncoderSubclass(ModelWithCustomEncoder):
            pass
    
        model = ModelWithCustomEncoder(dt_field=datetime(2019, 1, 1, 8))
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. src/cmd/trace/testdata/testprog/main.go

    	var s [][]byte
    	for i := 0; ; i++ {
    		if i%1000 == 0 {
    			if time.Since(start) > dt {
    				return
    			}
    			// Take a break... this will generate a ton of events otherwise.
    			time.Sleep(50 * time.Microsecond)
    		}
    		s = append(s, make([]byte, 1024))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go

    	},
    	DefaultUnit: Unit{"B", []string{"b", "byte"}, 1},
    }, {
    	Units: []Unit{
    		{"ns", []string{"ns", "nanosecond"}, float64(time.Nanosecond)},
    		{"us", []string{"μs", "us", "microsecond"}, float64(time.Microsecond)},
    		{"ms", []string{"ms", "millisecond"}, float64(time.Millisecond)},
    		{"s", []string{"s", "sec", "second"}, float64(time.Second)},
    		{"hrs", []string{"hour", "hr"}, float64(time.Hour)},
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/internal/trace/gc_test.go

    		defer func(old int) { trace.BandsPerSeries = old }(trace.BandsPerSeries)
    		trace.BandsPerSeries = 1
    		mmuCurve2 := trace.NewMMUCurve(mu)
    		quantiles := []float64{0, 1 - .999, 1 - .99}
    		for window := time.Microsecond; window < time.Second; window *= 10 {
    			mud1 := mmuCurve.MUD(window, quantiles)
    			mud2 := mmuCurve2.MUD(window, quantiles)
    			for i := range mud1 {
    				if !aeq(mud1[i], mud2[i]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go

    	switch len(logWriters) {
    	case 0:
    		logWriter = io.Discard
    	case 1:
    		logWriter = logWriters[0]
    	default:
    		logWriter = io.MultiWriter(logWriters...)
    	}
    	logger := log.New(logWriter, "", log.Ltime|log.Lmicroseconds|log.Lshortfile)
    
    	// Fetch the upload config, if it is not provided.
    	config, configVersion, err := configstore.Download("latest", rcfg.Env)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go

    package v1
    
    import (
    	"encoding/json"
    	"time"
    
    	cbor "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct"
    )
    
    const RFC3339Micro = "2006-01-02T15:04:05.000000Z07:00"
    
    // MicroTime is version of Time with microsecond level precision.
    //
    // +protobuf.options.marshal=false
    // +protobuf.as=Timestamp
    // +protobuf.options.(gogoproto.goproto_stringer)=false
    type MicroTime struct {
    	time.Time `protobuf:"-"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/cmd/trace/jsontrace_test.go

    		t.Fatal(err)
    	}
    	return data
    }
    
    func sumExecutionTime(data format.Data) (sum time.Duration) {
    	for _, e := range data.Events {
    		sum += time.Duration(e.Dur) * time.Microsecond
    	}
    	return
    }
    
    func getTestTrace(t *testing.T, testPath string) *parsedTrace {
    	t.Helper()
    
    	// First read in the text trace and write it out as bytes.
    	f, err := os.Open(testPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top