private static void cpuHogCFunction() { // Generates CPU profile samples including a Cgo call path. while (true) { C.CPUHogCFunction(); runtime.Gosched(); } }