- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for setcpuprofilerate (0.38 sec)
-
src/runtime/cpuprof.go
} var cpuprof cpuProfile // SetCPUProfileRate sets the CPU profiling rate to hz samples per second. // If hz <= 0, SetCPUProfileRate turns off profiling. // If the profiler is on, the rate cannot be changed without first turning it off. // // Most clients should use the [runtime/pprof] package or // the [testing] package's -test.cpuprofile flag instead of calling // SetCPUProfileRate directly. func SetCPUProfileRate(hz int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.5K bytes - Viewed (0) -
src/runtime/runtime_test.go
if recover() == nil { panic("failed recover") } }(1, 2, 3) panic("hi") } // golang.org/issue/7063 func TestStopCPUProfilingWithProfilerOff(t *testing.T) { SetCPUProfileRate(0) } // Addresses to test for faulting behavior. // This is less a test of SetPanicOnFault and more a check that // the operating system and the runtime can process these faults
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 11.7K bytes - Viewed (0) -
src/runtime/pprof/pprof.go
if cpu.done == nil { cpu.done = make(chan bool) } // Double-check. if cpu.profiling { return fmt.Errorf("cpu profiling already in use") } cpu.profiling = true runtime.SetCPUProfileRate(hz) go profileWriter(w) return nil } // readProfile, provided by the runtime, returns the next chunk of // binary CPU profiling stack trace data, blocking until data is available.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0) -
src/runtime/proc.go
} mp = gp.m pp = gp.m.p.ptr() } traceCPUSample(gprof, mp, pp, stk[:n]) } getg().m.mallocing-- } // setcpuprofilerate sets the CPU profiling rate to hz times per second. // If hz <= 0, setcpuprofilerate turns off CPU profiling. func setcpuprofilerate(hz int32) { // Force sane arguments. if hz < 0 { hz = 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
{"NumGoroutine", Func, 0}, {"PanicNilError", Type, 21}, {"Pinner", Type, 21}, {"ReadMemStats", Func, 0}, {"ReadTrace", Func, 5}, {"SetBlockProfileRate", Func, 1}, {"SetCPUProfileRate", Func, 0}, {"SetCgoTraceback", Func, 7}, {"SetFinalizer", Func, 0}, {"SetMutexProfileFraction", Func, 8}, {"Stack", Func, 0}, {"StackRecord", Type, 0}, {"StackRecord.Stack0", 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) -
api/go1.txt
pkg runtime, func NumCPU() int pkg runtime, func NumCgoCall() int64 pkg runtime, func NumGoroutine() int pkg runtime, func ReadMemStats(*MemStats) pkg runtime, func SetCPUProfileRate(int) pkg runtime, func SetFinalizer(interface{}, interface{}) pkg runtime, func Stack([]uint8, bool) int pkg runtime, func ThreadCreateProfile([]StackRecord) (int, bool) pkg runtime, func UnlockOSThread()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)