J
Joe Van Dyk
Hi,
I'd like to be able to get the CPU usage of a particular process.=20
What are my options for doing so from Ruby?
I've found the libgtop ruby binding, and I could use that, but I would
rather not bring in another dependency. This will run on Linux
systems only.
And would I want to use the elapsed real cpu time? Or the sum of the
elapsed user and system cpu time? (and then I believe I divide that
by the elapsed wall clock time)
Thanks,
Joe
I'd like to be able to get the CPU usage of a particular process.=20
What are my options for doing so from Ruby?
I've found the libgtop ruby binding, and I could use that, but I would
rather not bring in another dependency. This will run on Linux
systems only.
And would I want to use the elapsed real cpu time? Or the sum of the
elapsed user and system cpu time? (and then I believe I divide that
by the elapsed wall clock time)
Thanks,
Joe