#9 Microsecond profiling resolution patch

open
nobody
None
5
2012-12-29
2009-11-20
Sitkarev Grisha
No

I give this patch to public domain and make no claim of copyright to this work.

This is a small patch which gives microsecond resolution to VIEW profiling output. It is tested only on Linux/x86 and it is possible to modify it to suit other platforms as well. The only requirement is availability of a getrusage(2) call.

To use this patch, copy patch file to directory with GT.M sources <gtm_sources>.

$ cp gtm_v53004a_linux_i686_usecprof.patch <gtm_sources>

and use patch utility

$ cd <gtm_sources>
$ patch -p1 < gtm_v53004a_linux_i686_usecprof.patch

then recompile sources and use VIEW as usual.

Discussion