From 6267829f68abd4ce744d07df26dc1ea64f59a5e8 Mon Sep 17 00:00:00 2001 From: a Date: Wed, 3 May 2023 00:47:57 -0500 Subject: [PATCH] fix --- main.go | 2 +- pprofweb/page.go | 12 +++++++++--- pprofweb/pprofweb.go | 2 +- webserver/pprofweb.go | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 8883d5b..9164e16 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "os/signal" "syscall" - "git.tuxpa.in/a/pprofweb/cli" + "tuxpa.in/a/pprofweb/cli" "github.com/alecthomas/kong" ) diff --git a/pprofweb/page.go b/pprofweb/page.go index 9090971..1dbecc9 100644 --- a/pprofweb/page.go +++ b/pprofweb/page.go @@ -47,12 +47,18 @@ works with whatever works in the command line (it just runs go tool pprof in the

- u can also use curl! basically it checks if your Accept headers have "http", and if not, then it will not redirect, and will send the id instead curl -F file=@ https://pprof.tuxpa.in/upload - -

+ +

+i also made a simple cli +you can download it by doing +

+

+go install tuxpa.in/a/pprofweb +

+ ` diff --git a/pprofweb/pprofweb.go b/pprofweb/pprofweb.go index bbd9db8..0b9f524 100644 --- a/pprofweb/pprofweb.go +++ b/pprofweb/pprofweb.go @@ -14,7 +14,7 @@ import ( "time" "gfx.cafe/util/go/generic" - "git.tuxpa.in/a/pprofweb/flagset" + "tuxpa.in/a/pprofweb/flagset" "github.com/go-chi/chi/v5" "github.com/google/pprof/driver" "github.com/rs/xid" diff --git a/webserver/pprofweb.go b/webserver/pprofweb.go index 45d56bf..2fce54a 100644 --- a/webserver/pprofweb.go +++ b/webserver/pprofweb.go @@ -5,7 +5,7 @@ import ( "net/http" "os" - "git.tuxpa.in/a/pprofweb/pprofweb" + "tuxpa.in/a/pprofweb/pprofweb" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "github.com/spf13/afero"