Skip to content

Commit 46721e1

Browse files
sysadmindSuperQ
andauthored
Add pprof for profiling (#1033)
* Add pprof for profiling We have received reports of excessive memory usage for the exporter. Pprof provides a mechanism for users to dump the heap which should provide useful information about what memory has been allocated. Signed-off-by: Joe Adams <[email protected]> * Update main.go Co-authored-by: Ben Kochie <[email protected]> Signed-off-by: Joe Adams <[email protected]> --------- Signed-off-by: Joe Adams <[email protected]> Co-authored-by: Ben Kochie <[email protected]>
1 parent 4a54705 commit 46721e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"fmt"
1919
"io"
2020
"net/http"
21+
_ "net/http/pprof"
2122
"net/url"
2223
"os"
2324
"os/signal"

0 commit comments

Comments
 (0)