Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for runRaceprofThread (0.18 sec)

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

    	arg->buf[1] = 0;
    }
    
    static void* raceprofThread(void* p) {
    	int i;
    
    	for (i = 0; i < 100; i++) {
    		pthread_kill(pthread_self(), SIGPROF);
    		sched_yield();
    	}
    	return 0;
    }
    
    void runRaceprofThread() {
    	pthread_t tid;
    	pthread_create(&tid, 0, raceprofThread, 0);
    	pthread_join(tid, 0);
    }
    */
    import "C"
    
    import (
    	"bytes"
    	"fmt"
    	"runtime"
    	"runtime/pprof"
    	"unsafe"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 18:13:14 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top