mirror of
				https://github.com/imgproxy/imgproxy.git
				synced 2025-10-30 23:08:02 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			250 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			250 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build pprof
 | |
| // +build pprof
 | |
| 
 | |
| package main
 | |
| 
 | |
| import (
 | |
| 	"net/http"
 | |
| 	_ "net/http/pprof"
 | |
| 	"os"
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	bind := os.Getenv("IMGPROXY_PPROF_BIND")
 | |
| 
 | |
| 	if len(bind) == 0 {
 | |
| 		bind = ":8088"
 | |
| 	}
 | |
| 
 | |
| 	go func() {
 | |
| 		http.ListenAndServe(bind, nil)
 | |
| 	}()
 | |
| }
 |