Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cpuHogThread (0.46 sec)

  1. src/runtime/testdata/testprogcgo/threadpprof.go

    	if (pthread_self() == tid) {
    		arg->buf[0] = (uintptr_t)(cpuHogThread) + 0x10;
    		arg->buf[1] = (uintptr_t)(cpuHogThread2) + 0x4;
    		arg->buf[2] = 0;
    	} else
    		arg->buf[0] = 0;
    }
    
    static void* cpuHogDriver(void* arg __attribute__ ((unused))) {
    	while (1) {
    		cpuHogThread();
    	}
    	return 0;
    }
    
    void runCPUHogThread(void) {
    	pthread_create(&tid, 0, cpuHogDriver, 0);
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 22:59:31 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. src/runtime/crash_cgo_test.go

    }
    
    func TestCgoPprofThread(t *testing.T) {
    	testCgoPprof(t, "", "CgoPprofThread", "cpuHogThread", "cpuHogThread2")
    }
    
    func TestCgoPprofThreadNoTraceback(t *testing.T) {
    	testCgoPprof(t, "", "CgoPprofThreadNoTraceback", "cpuHogThread", "runtime._ExternalCode")
    }
    
    func TestRaceProf(t *testing.T) {
    	if !platform.RaceDetectorSupported(runtime.GOOS, runtime.GOARCH) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top