Has anyone tried out Scalene for profiling in Dagster? I was thinking of using it for op metrics like CPU and memory. It should work for digging into handoffs between duckdb, polars, arrow, etc - they mention C a lot but it looks like their approach works fine for rust libraries too. Maybe keeping it on for some always-on metrics if it's really lightweight enough, maybe emit some to prometheus... otherwise for profiling during dev.
https://github.com/plasma-umass/scalene