Create native extension to expose `getrusage(RUSAGE_THREAD)`

Following the https://gitlab.com/gitlab-org/gitlab-ee/issues/31887.

Today we can only measure user_s of the thread with Process.clock_gettime(Process::CLOCK_THREAD_CPUTIME_ID).

It would really help if we could get all informations that are available in Process.times, but for currently running thread. To do that we have to write native extension to expose that.

Assignee Loading
Time tracking Loading