Same as #118 but for userspace, not sure if we can use same methods, but the kernel is kinda more prioritized since userspace is a user of the kernel service, so focusing on optimizing kernel is good.
But another note is that there are some programs like https://github.com/mstange/samply to do profiling, of course its custom to linux/mac, but if we can port only the parts needed to emerald, we might be able to implement userspace profiling much easier.
Same as #118 but for userspace, not sure if we can use same methods, but the kernel is kinda more prioritized since userspace is a user of the kernel service, so focusing on optimizing kernel is good.
But another note is that there are some programs like https://github.com/mstange/samply to do profiling, of course its custom to linux/mac, but if we can port only the parts needed to emerald, we might be able to implement userspace profiling much easier.