github.com/whamcloud/lemur@v0.0.0-20190827193804-4655df8a52af/cmd/lhsmd/profile.go (about)

     1  // Copyright (c) 2018 DDN. All rights reserved.
     2  // Use of this source code is governed by a MIT-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build profile
     6  
     7  package main
     8  
     9  import (
    10  	"log"
    11  	"net/http"
    12  	_ "net/http/pprof"
    13  )
    14  
    15  func init() {
    16  	go func() {
    17  		log.Println(http.ListenAndServe("localhost:6060", nil))
    18  	}()
    19  
    20  }