- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 31 for MemProfileRate (0.4 sec)
-
src/runtime/mprof.go
} } return r.Stack0[0:] } // MemProfileRate controls the fraction of memory allocations // that are recorded and reported in the memory profile. // The profiler aims to sample an average of // one allocation per MemProfileRate bytes allocated. // // To include every allocated block in the profile, set MemProfileRate to 1. // To turn off profiling entirely, set MemProfileRate to 0. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0) -
src/cmd/go/internal/test/testflag.go
cf.StringVar(&testFuzz, "fuzz", "", "") cf.Bool("fullpath", false, "") cf.StringVar(&testList, "list", "", "") cf.StringVar(&testMemProfile, "memprofile", "", "") cf.String("memprofilerate", "", "") cf.StringVar(&testMutexProfile, "mutexprofile", "", "") cf.String("mutexprofilefraction", "", "") cf.Var(&testOutputDir, "outputdir", "") cf.Int("parallel", 0, "") cf.String("run", "", "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 19:25:24 UTC 2024 - 12.2K bytes - Viewed (0) -
src/runtime/testdata/testprog/gc.go
} func GCSys() { runtime.GOMAXPROCS(1) memstats := new(runtime.MemStats) runtime.GC() runtime.ReadMemStats(memstats) sys := memstats.Sys runtime.MemProfileRate = 0 // disable profiler itercount := 100000 for i := 0; i < itercount; i++ { workthegc() } // Should only be using a few MB. // We allocated 100 MB or (if not short) 1 GB.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 12.1K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
Write an allocation profile to the file after all tests have passed. Writes test binary as -c would. -memprofilerate n Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate. See 'go doc runtime.MemProfileRate'. To profile all memory allocations, use -test.memprofilerate=1. -mutexprofile mutex.out Write a mutex contention profile to the specified file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
func TestProfilerStackDepth(t *testing.T) { // Disable sampling, otherwise it's difficult to assert anything. oldMemRate := runtime.MemProfileRate runtime.MemProfileRate = 1 runtime.SetBlockProfileRate(1) oldMutexRate := runtime.SetMutexProfileFraction(1) t.Cleanup(func() { runtime.MemProfileRate = oldMemRate runtime.SetBlockProfileRate(0) runtime.SetMutexProfileFraction(oldMutexRate) }) const depth = 128
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
cmd/utils.go
for name, buf := range prof.Records() { if len(buf) > 0 { dst[typ+"-"+name+"."+prof.Extension()] = buf } } } return dst, nil } func setDefaultProfilerRates() { runtime.MemProfileRate = 128 << 10 // 512KB -> 128K - Must be constant throughout application lifetime. runtime.SetMutexProfileFraction(0) // Disable until needed runtime.SetBlockProfileRate(0) // Disable until needed }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 05 22:00:34 UTC 2024 - 31.9K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// Writes test binary as -c would. // // -memprofilerate n // Enable more precise (and expensive) memory allocation profiles by // setting runtime.MemProfileRate. See 'go doc runtime.MemProfileRate'. // To profile all memory allocations, use -test.memprofilerate=1. // // -mutexprofile mutex.out // Write a mutex contention profile to the specified file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0) -
src/runtime/arena.go
span.userArenaChunkFree = makeAddrRange(span.base(), rzStart) asanpoison(unsafe.Pointer(rzStart), span.limit-rzStart) asanunpoison(unsafe.Pointer(span.base()), span.elemsize) } if rate := MemProfileRate; rate > 0 { c := getMCache(mp) if c == nil { throw("newUserArenaChunk called without a P or outside bootstrapping") } // Note cache c only valid while m acquired; see #47302
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/runtime/proc.go
// if disableMemoryProfiling is set, update MemProfileRate to 0 to turn off memprofile. // Note: parsedebugvars may update MemProfileRate, but when disableMemoryProfiling is // set to true by the linker, it means that nothing is consuming the profile, it is // safe to set MemProfileRate to 0. if disableMemoryProfiling { MemProfileRate = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"GOROOT", Func, 0}, {"Goexit", Func, 0}, {"GoroutineProfile", Func, 0}, {"Gosched", Func, 0}, {"KeepAlive", Func, 7}, {"LockOSThread", Func, 0}, {"MemProfile", Func, 0}, {"MemProfileRate", Var, 0}, {"MemProfileRecord", Type, 0}, {"MemProfileRecord.AllocBytes", Field, 0}, {"MemProfileRecord.AllocObjects", Field, 0}, {"MemProfileRecord.FreeBytes", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)