- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for numSvc (0.12 sec)
-
pilot/pkg/model/push_context_test.go
services := scScope.Services() numSvc := 0 svcList := []string{} for _, service := range services { svcName := service.Attributes.Name svcNS := service.Attributes.Namespace if svcNS != ns && svcNS != rootNS { numSvc++ } svcList = append(svcList, fmt.Sprintf("%v.%v.cluster.local", svcName, svcNS)) } if sidecarScopeEnabled && numSvc > 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 95.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumezone/volume_zone_test.go
func BenchmarkVolumeZone(b *testing.B) { tests := []struct { Name string Pod *v1.Pod NumPV int NumPVC int NumNodes int PreFilter bool }{ { Name: "with prefilter", Pod: createPodWithVolume("pod_0", "PVC_Stable_0"), NumPV: 1000, NumPVC: 1000, NumNodes: 1000, PreFilter: true, }, { Name: "without prefilter",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 14 05:17:04 UTC 2023 - 20K bytes - Viewed (0) -
pkg/ctrlz/assets/templates/home.html
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.8K bytes - Viewed (0) -
test/init1.go
runtime.ReadMemStats(memstats) sys, numGC := memstats.Sys, memstats.NumGC // Generate 1,000 MB of garbage, only retaining 1 MB total. for i := 0; i < N; i++ { x = []byte(s) } // Verify that the garbage collector ran by seeing if we // allocated fewer than N*MB bytes from the system. runtime.ReadMemStats(memstats) sys1, numGC1 := memstats.Sys, memstats.NumGC if sys1-sys >= N*MB || numGC1 == numGC {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.1K bytes - Viewed (0) -
src/runtime/debug/garbage_test.go
ReadGCStats(&stats) runtime.GC() // Assume these will return same data: no GC during ReadGCStats. ReadGCStats(&stats) runtime.ReadMemStats(&mstats) if stats.NumGC != int64(mstats.NumGC) { t.Errorf("stats.NumGC = %d, but mstats.NumGC = %d", stats.NumGC, mstats.NumGC) } if stats.PauseTotal != time.Duration(mstats.PauseTotalNs) { t.Errorf("stats.PauseTotal = %d, but mstats.PauseTotalNs = %d", stats.PauseTotal, mstats.PauseTotalNs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.2K bytes - Viewed (0) -
pkg/ctrlz/home.go
type homeInfo struct { ProcessName string HeapSize uint64 NumGC uint32 CurrentTime int64 Hostname string IP string } func getHomeInfo() *homeInfo { var ms runtime.MemStats runtime.ReadMemStats(&ms) hostName, _ := os.Hostname() return &homeInfo{ ProcessName: os.Args[0], HeapSize: ms.HeapAlloc, NumGC: ms.NumGC, CurrentTime: time.Now().UnixNano(), Hostname: hostName,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/ctrlz/topics/assets/templates/mem.html
<td>PauseTotalNs</td> <td id="PauseTotalNs">{{.PauseTotalNs}} ns</td> <td>Cumulative time spent in GC stop-the-world pauses.</td> </tr> <tr> <td>NumGC</td> <td id="NumGC">{{.NumGC}} GC cycles</td> <td>Completed GC cycles.</td> </tr> <tr> <td>NumForcedGC</td> <td id="NumForcedGC">{{.NumForcedGC}} GC cycles</td>
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 7.2K bytes - Viewed (0) -
src/runtime/malloc_test.go
} if st.NumForcedGC > st.NumGC { t.Fatalf("NumForcedGC(%d) > NumGC(%d)", st.NumForcedGC, st.NumGC) } } func TestStringConcatenationAllocs(t *testing.T) { n := testing.AllocsPerRun(1e3, func() { b := make([]byte, 10) for i := 0; i < 10; i++ { b[i] = byte(i) + '0' } s := "foo" + string(b) if want := "foo0123456789"; s != want { t.Fatalf("want %v, got %v", want, s) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 10.6K bytes - Viewed (0) -
pkg/kubelet/pod/pod_manager.go
func updateMetrics(oldPod, newPod *v1.Pod) { var numEC int if oldPod != nil { numEC -= len(oldPod.Spec.EphemeralContainers) } if newPod != nil { numEC += len(newPod.Spec.EphemeralContainers) } if numEC != 0 { metrics.ManagedEphemeralContainers.Add(float64(numEC)) } } // updatePodsInternal replaces the given pods in the current state of the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:00 UTC 2024 - 11.9K bytes - Viewed (0) -
src/encoding/hex/hex.go
if numAvail := len(d.in) / 2; len(p) > numAvail { p = p[:numAvail] } numDec, err := Decode(p, d.in[:len(p)*2]) d.in = d.in[2*numDec:] if err != nil { d.in, d.err = nil, err // Decode error; discard input remainder } if len(d.in) < 2 { return numDec, d.err // Only expose errors when buffer fully consumed } return numDec, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:30:23 UTC 2024 - 9.5K bytes - Viewed (0)