Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 593 for Mallocs (0.47 sec)

  1. cmd/admin-server-info.go

    		Endpoint: addr,
    		Uptime:   UTCNow().Unix() - globalBootTime.Unix(),
    		Version:  Version,
    		CommitID: CommitID,
    		Network:  network,
    		MemStats: madmin.MemStats{
    			Alloc:      memstats.Alloc,
    			TotalAlloc: memstats.TotalAlloc,
    			Mallocs:    memstats.Mallocs,
    			Frees:      memstats.Frees,
    			HeapAlloc:  memstats.HeapAlloc,
    		},
    		GoMaxProcs:     runtime.GOMAXPROCS(0),
    		NumCPU:         runtime.NumCPU(),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/runtime/metrics_test.go

    		t.Error("allocs-by-size and frees-by-size counts don't match in length")
    	} else {
    		for i := range objects.alloc.Buckets {
    			ba := objects.alloc.Buckets[i]
    			bf := objects.free.Buckets[i]
    			if ba != bf {
    				t.Errorf("bucket %d is different for alloc and free hists: %f != %f", i, ba, bf)
    			}
    		}
    		if !t.Failed() {
    			var gotAlloc, gotFree uint64
    			want := objects.total
    			for i := range objects.alloc.Counts {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/compile.go

    			var stats string
    			if logMemStats {
    				var mEnd runtime.MemStats
    				runtime.ReadMemStats(&mEnd)
    				nBytes := mEnd.TotalAlloc - mStart.TotalAlloc
    				nAllocs := mEnd.Mallocs - mStart.Mallocs
    				stats = fmt.Sprintf("[%d ns %d allocs %d bytes]", time, nAllocs, nBytes)
    			} else {
    				stats = fmt.Sprintf("[%d ns]", time)
    			}
    
    			if f.Log() {
    				f.Logf("  pass %s end %s\n", p.name, stats)
    				printFunc(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. src/testing/benchmark.go

    		return 0
    	}
    	return (float64(r.Bytes) * float64(r.N) / 1e6) / r.T.Seconds()
    }
    
    // AllocsPerOp returns the "allocs/op" metric,
    // which is calculated as r.MemAllocs / r.N.
    func (r BenchmarkResult) AllocsPerOp() int64 {
    	if v, ok := r.Extra["allocs/op"]; ok {
    		return int64(v)
    	}
    	if r.N <= 0 {
    		return 0
    	}
    	return int64(r.MemAllocs) / int64(r.N)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    			bySize[i].Frees += m.smallFreeCount[i]
    			bySize[i].Mallocs += m.smallFreeCount[i]
    			smallFree += m.smallFreeCount[i] * uint64(class_to_size[i])
    		}
    		slow.Frees += m.tinyAllocCount + m.largeFreeCount
    		slow.Mallocs += slow.Frees
    
    		slow.TotalAlloc = slow.Alloc + m.largeFree + smallFree
    
    		for i := range slow.BySize {
    			slow.BySize[i].Mallocs = bySize[i].Mallocs
    			slow.BySize[i].Frees = bySize[i].Frees
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  6. src/time/tick_test.go

    			runtime.GC()
    			runtime.GC()
    			runtime.GC()
    			runtime.ReadMemStats(&stats)
    			before := int64(stats.Mallocs - stats.Frees)
    
    			for j := 0; j < N; j++ {
    				f()
    			}
    
    			runtime.GC()
    			runtime.GC()
    			runtime.GC()
    			runtime.ReadMemStats(&stats)
    			after := int64(stats.Mallocs - stats.Frees)
    
    			// Allow some slack, but inuse >= N means at least 1 allocation per iteration.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. src/runtime/mprof.go

    	// The following complex 3-stage scheme of stats accumulation
    	// is required to obtain a consistent picture of mallocs and frees
    	// for some point in time.
    	// The problem is that mallocs come in real time, while frees
    	// come only after a GC during concurrent sweeping. So if we would
    	// naively count them, we would get a skew toward mallocs.
    	//
    	// Hence, we delay information to get consistent snapshots as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  8. src/runtime/pprof/pprof.go

    	// Pprof will ignore, but useful for people
    	s := memStats
    	fmt.Fprintf(w, "\n# runtime.MemStats\n")
    	fmt.Fprintf(w, "# Alloc = %d\n", s.Alloc)
    	fmt.Fprintf(w, "# TotalAlloc = %d\n", s.TotalAlloc)
    	fmt.Fprintf(w, "# Sys = %d\n", s.Sys)
    	fmt.Fprintf(w, "# Lookups = %d\n", s.Lookups)
    	fmt.Fprintf(w, "# Mallocs = %d\n", s.Mallocs)
    	fmt.Fprintf(w, "# Frees = %d\n", s.Frees)
    
    	fmt.Fprintf(w, "# HeapAlloc = %d\n", s.HeapAlloc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. src/runtime/trace.go

    		// Finish off CPU profile reading.
    		traceStopReadCPU()
    
    		// Reset debug.malloc if necessary. Note that this is set in a racy
    		// way; that's OK. Some mallocs may still enter into the debug.malloc
    		// block, but they won't generate events because tracing is disabled.
    		// That is, it's OK if mallocs read a stale debug.malloc or
    		// trace.enabledWithAllocFree value.
    		if trace.enabledWithAllocFree {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    						}
    						return math.MaxInt // this indicates that its unset.
    					}(),
    					PoolNumbers: server.PoolNumbers,
    					MemStats: madmin.MemStats{
    						Alloc:      server.MemStats.Alloc,
    						TotalAlloc: server.MemStats.TotalAlloc,
    						Mallocs:    server.MemStats.Mallocs,
    						Frees:      server.MemStats.Frees,
    						HeapAlloc:  server.MemStats.HeapAlloc,
    					},
    					GoMaxProcs:     server.GoMaxProcs,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top