소스 검색

Fix build with profiling

tags/v2.2.5^2^2
9seconds 1 개월 전
부모
커밋
b47e13556e
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6
    0
      .mise.toml
  2. 0
    1
      run_profile_tag_prof.go

+ 6
- 0
.mise.toml 파일 보기

@@ -16,6 +16,12 @@ sources = ["**/*.go", "go.mod", "go.sum"]
16 16
 outputs = ["mtg"]
17 17
 run = "go build"
18 18
 
19
+[tasks."build:prof"]
20
+description = "Build binary with profiling enabled"
21
+sources = ["**/*.go", "go.mod", "go.sum"]
22
+outputs = ["mtg"]
23
+run = "go build -tags prof"
24
+
19 25
 [tasks.update]
20 26
 description = "Update dependencies"
21 27
 run = [

+ 0
- 1
run_profile_tag_prof.go 파일 보기

@@ -3,7 +3,6 @@
3 3
 package main
4 4
 
5 5
 import (
6
-	"fmt"
7 6
 	"net"
8 7
 	"net/http"
9 8
 	_ "net/http/pprof" //nolint: gosec

Loading…
취소
저장