Skip to content

This is an example application to use tikv/pprof-rs with warp.

Notifications You must be signed in to change notification settings

rinx-playground/warp-pprof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

warp-pprof

This is an example application to use tikv/pprof-rs with warp.

Usage

Run webserver.

❯ cargo run

The server will start with 3030 port.

Fetch pprof.pb using curl.

❯ curl "http://localhost:3030/debug/pprof/profile?seconds=10" -o pprof.pb

This will take 10 seconds. During this period, send a dummy request runs a loop.

❯ curl "http://localhost:3030/dummy"

Then, visualize pprof.pb using go tool pprof.

go tool pprof -http=:8080 pprof.pb

About

This is an example application to use tikv/pprof-rs with warp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages