fix
This commit is contained in:
parent
7572ea4e2c
commit
6267829f68
2
main.go
2
main.go
|
@ -7,7 +7,7 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"git.tuxpa.in/a/pprofweb/cli"
|
"tuxpa.in/a/pprofweb/cli"
|
||||||
"github.com/alecthomas/kong"
|
"github.com/alecthomas/kong"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -47,12 +47,18 @@ works with whatever works in the command line (it just runs go tool pprof in the
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
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
|
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=@<filename> https://pprof.tuxpa.in/upload
|
curl -F file=@<filename> https://pprof.tuxpa.in/upload
|
||||||
|
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
i also made a simple cli
|
||||||
|
you can download it by doing
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
go install tuxpa.in/a/pprofweb
|
||||||
|
</p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`
|
`
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gfx.cafe/util/go/generic"
|
"gfx.cafe/util/go/generic"
|
||||||
"git.tuxpa.in/a/pprofweb/flagset"
|
"tuxpa.in/a/pprofweb/flagset"
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/google/pprof/driver"
|
"github.com/google/pprof/driver"
|
||||||
"github.com/rs/xid"
|
"github.com/rs/xid"
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.tuxpa.in/a/pprofweb/pprofweb"
|
"tuxpa.in/a/pprofweb/pprofweb"
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/go-chi/chi/v5/middleware"
|
"github.com/go-chi/chi/v5/middleware"
|
||||||
"github.com/spf13/afero"
|
"github.com/spf13/afero"
|
||||||
|
|
Loading…
Reference in New Issue