You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To easily detect and share performance issues we need a library that effectively profiles application and monitors itself without any external dependency
The content you are editing has changed. Please copy your edits and refresh the page.
The text was updated successfully, but these errors were encountered:
tarunKoyalwar
changed the title
Create a Embeddable Performance monitor to detect / crash
Create a Embeddable package to monitor and profile go tools/apps
Feb 20, 2024
What worked for me while debugging nuclei is this approach. It will dump the goroutines stack trace and memory allocations on a regular interval until stopped.
pprof.WriteHeapProfile()
runtime.ReadMemStats(&memStat)
pprof.Lookup("goroutine").WriteTo(f, 0)
Running these on an interval will create a new dump file every X minutes which might be what you need. You can then inspect the memory and goroutine stack trace using go tool pprof file.dump
Proposed Changes
Tasks
Detection Logic ( Task 3)
time
as keytime
as keyIMP/CRITICAL
profiles and share them instead of sharing all xGB of profilesReferences
The text was updated successfully, but these errors were encountered: