Home | History | Annotate | Download | only in runtime

Lines Matching refs:Hz

35 	// size for framing, 100 Hz profiling would generate
46 // SetCPUProfileRate sets the CPU profiling rate to hz samples per second.
47 // If hz <= 0, SetCPUProfileRate turns off profiling.
53 func SetCPUProfileRate(hz int) {
54 // Clamp hz to something reasonable.
55 if hz < 0 {
56 hz = 0
58 if hz > 1000000 {
59 hz = 1000000
63 if hz > 0 {
72 hdr := [1]uint64{uint64(hz)}
74 setcpuprofilerate(int32(hz))
96 if prof.hz != 0 { // implies cpuprof.log != nil