Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/fredim/statsviz
Instant live visualization of your Go application runtime statistics (GC, MemStats, etc.).
import "github.com/arl/statsviz"
http://host:port/debug/statsviz
go get -u github.com/arl/statsviz
Either Register
statsviz HTTP handlers with the http.ServeMux you're using (preferred method):
mux := http.NewServeMux()
statsviz.Register(mux)
Or register them with the http.DefaultServeMux
:
statsviz.RegisterDefault()
If your application is not already running an HTTP server, you need to start
one. Add "net/http"
and "log"
to your imports and the following code to your
main
function:
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
The handled path is /debug/statsviz/
.
Then open your browser at http://localhost:6060/debug/statsviz/
Using http.DefaultServeMux
:
Using your own http.ServeMux
:
Using gorilla/mux Router:
On the plots where it matters, garbage collections are shown as vertical lines.
Pull-requests are welcome! More details in CONTRIBUTING.md
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.