- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for setcpuprofilerate (0.13 sec)
-
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)