Parcourir la source

Fix build with profiling

tags/v2.2.5^2^2
9seconds il y a 1 mois
Parent
révision
b47e13556e
2 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6
    0
      .mise.toml
  2. 0
    1
      run_profile_tag_prof.go

+ 6
- 0
.mise.toml Voir le fichier

@@ -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 Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer