Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 64 for memState (0.3 sec)

  1. src/runtime/pprof/pprof.go

    }
    
    func writeHeapInternal(w io.Writer, debug int, defaultSampleType string) error {
    	var memStats *runtime.MemStats
    	if debug != 0 {
    		// Read mem stats first, so that our other allocations
    		// do not appear in the statistics.
    		memStats = new(runtime.MemStats)
    		runtime.ReadMemStats(memStats)
    	}
    
    	// Find out how many records there are (MemProfile(nil, true)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. src/runtime/mheap.go

    	h.cachealloc.init(unsafe.Sizeof(mcache{}), nil, nil, &memstats.mcache_sys)
    	h.specialfinalizeralloc.init(unsafe.Sizeof(specialfinalizer{}), nil, nil, &memstats.other_sys)
    	h.specialprofilealloc.init(unsafe.Sizeof(specialprofile{}), nil, nil, &memstats.other_sys)
    	h.specialReachableAlloc.init(unsafe.Sizeof(specialReachable{}), nil, nil, &memstats.other_sys)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/cgonoescape.go

    //go:noinline
    func withoutNoEscape() {
    	var str string
    	C.runCWithoutNoEscape(unsafe.Pointer(&str))
    }
    
    func CgoNoEscape() {
    	// make GC stop to see the heap objects allocated
    	debug.SetGCPercent(-1)
    
    	var stats runtime.MemStats
    	runtime.ReadMemStats(&stats)
    	preHeapObjects := stats.HeapObjects
    
    	for i := 0; i < num; i++ {
    		withNoEscape()
    	}
    
    	runtime.ReadMemStats(&stats)
    	nowHeapObjects := stats.HeapObjects
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 16:43:23 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. pkg/ctrlz/topics/assets/templates/mem.html

    {{ define "content" }}
    
    <p>
        This information is gathered from the Go runtime and represents the ongoing memory consumption
        of this process. Please refer to the <a href="https://golang.org/pkg/runtime/#MemStats">Go documentation on the MemStats type</a>
        for more information about all of these values.
    </p>
    
    <table>
        <thead>
        <tr>
            <th>Counter</th>
            <th>Value</th>
            <th>Description</th>
        </tr>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    	metricsUnlock()
    
    	startTheWorld(stw)
    }
    
    var DoubleCheckReadMemStats = &doubleCheckReadMemStats
    
    // ReadMemStatsSlow returns both the runtime-computed MemStats and
    // MemStats accumulated by scanning the heap.
    func ReadMemStatsSlow() (base, slow MemStats) {
    	stw := stopTheWorld(stwForTestReadMemStatsSlow)
    
    	// Run on the system stack to avoid stack growth allocation.
    	systemstack(func() {
    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/cmd/link/internal/benchmark/bench.go

    )
    
    type Metrics struct {
    	gc        Flags
    	marks     []*mark
    	curMark   *mark
    	filebase  string
    	pprofFile *os.File
    }
    
    type mark struct {
    	name              string
    	startM, endM, gcM runtime.MemStats
    	startT, endT      time.Time
    }
    
    // New creates a new Metrics object.
    //
    // Typical usage should look like:
    //
    //	func main() {
    //	  filename := "" // Set to enable per-phase pprof file output.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. src/runtime/mcheckmark.go

    		arena := mheap_.arenas[ai.l1()][ai.l2()]
    		bitmap := arena.checkmarks
    
    		if bitmap == nil {
    			// Allocate bitmap on first use.
    			bitmap = (*checkmarksMap)(persistentalloc(unsafe.Sizeof(*bitmap), 0, &memstats.gcMiscSys))
    			if bitmap == nil {
    				throw("out of memory allocating checkmarks bitmap")
    			}
    			arena.checkmarks = bitmap
    		} else {
    			// Otherwise clear the existing bitmap.
    			clear(bitmap.b[:])
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/sync/pool_test.go

    				p.Get()
    			}
    		}
    	})
    }
    
    var globalSink any
    
    func BenchmarkPoolSTW(b *testing.B) {
    	// Take control of GC.
    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    
    	var mstats runtime.MemStats
    	var pauses []uint64
    
    	var p Pool
    	for i := 0; i < b.N; i++ {
    		// Put a large number of items into a pool.
    		const N = 100000
    		var item any = 42
    		for i := 0; i < N; i++ {
    			p.Put(item)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. cmd/handler-api.go

    			available = (limit * 9) / 10
    			return
    		}
    	} // for all other platforms limits are based on virtual memory.
    
    	memStats, err := mem.VirtualMemory()
    	if err != nil {
    		return
    	}
    
    	// A valid value is available return its 90%
    	available = (memStats.Available * 9) / 10
    	return
    }
    
    func (t *apiConfig) init(cfg api.Config, setDriveCounts []int, legacy bool) {
    	t.mu.Lock()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/parser_test.go

    	}
    
    	var skipRx *regexp.Regexp
    	if *skip != "" {
    		var err error
    		skipRx, err = regexp.Compile(*skip)
    		if err != nil {
    			t.Fatalf("invalid argument for -skip (%v)", err)
    		}
    	}
    
    	var m1 runtime.MemStats
    	runtime.ReadMemStats(&m1)
    	start := time.Now()
    
    	type parseResult struct {
    		filename string
    		lines    uint
    	}
    
    	goroot := testenv.GOROOT(t)
    
    	results := make(chan parseResult)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top