Lines Matching full:hz
28 // that capacity can support 1900 samples or 19 thread-seconds at a 100 Hz
33 // room for 16k samples, or 160 thread-seconds at a 100 Hz sample rate.
49 // size for framing, 100 Hz profiling would generate
61 // SetCPUProfileRate sets the CPU profiling rate to hz samples per second.
62 // If hz <= 0, SetCPUProfileRate turns off profiling.
68 func SetCPUProfileRate(hz int) {
69 // Clamp hz to something reasonable.
70 if hz < 0 {
71 hz = 0
73 if hz > 1000000 {
74 hz = 1000000
78 if hz > 0 {
87 hdr := [1]uint64{uint64(hz)}
89 setcpuprofilerate(int32(hz))
113 if prof.hz.Load() != 0 { // implies cpuprof.log != nil