Lines Matching refs:hz
108 func setcpuprofilerate(hz int32) {
110 setcpuprofilerate_m(hz)
119 // SetCPUProfileRate sets the CPU profiling rate to hz samples per second.
120 // If hz <= 0, SetCPUProfileRate turns off profiling.
126 func SetCPUProfileRate(hz int) {
127 // Clamp hz to something reasonable.
128 if hz < 0 {
129 hz = 0
131 if hz > 1000000 {
132 hz = 1000000
136 if hz > 0 {
158 p[3] = uintptr(1e6 / hz) // period (microseconds)
168 setcpuprofilerate(int32(hz))