16 lines
		
	
	
		
			281 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			281 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package main
 | |
| 
 | |
| import (
 | |
| 	"net"
 | |
| 
 | |
| 	winio "github.com/Microsoft/go-winio"
 | |
| )
 | |
| 
 | |
| func (d *pprofDialer) pprofDial(proto, addr string) (conn net.Conn, err error) {
 | |
| 	return winio.DialPipe(d.addr, nil)
 | |
| }
 | |
| 
 | |
| func getPProfDialer(addr string) *pprofDialer {
 | |
| 	return &pprofDialer{"winpipe", addr}
 | |
| }
 | 
