chainguard-dev / bincapz

detect malicious program behaviors
Apache License 2.0
380 stars 24 forks source link

Add profiling to help with OOM/performance investigations #207

Closed egibs closed 2 months ago

egibs commented 2 months ago

This is a quick PR to help with identifying the cause(s) of #204 which adds CPU and Memory profiling along with tracing.

If anything, I wanted the code to be available to aid with the investigation -- this doesn't necessarily need to be merged; however, as the number of capabilities grows it would be nice to have some insight into any causes of performance regressions.