Well int clock_getcpuclockid we miss.  I think it is obvious that we
would like to provide it, so a patch to clock.c file would be desired
here.  The patch for an implementation for this function takes for
sure less time as it took you to collect all those information.  So
why you weren't providing one in you mail?


int clock_getcpuclockid(pid_t pid, clockid_t *clock_id)
{
  /* TODO: we might want to check pid to verify process.  */
  (void) pid;
  *clock_id = CLOCK_PROCESS_CPUTIME_ID;
  return 0;
}

and as we are about it the

int pthread_getcpuclockid(pthread_t thread_id, clockid_t *clock_id)
function we could add here too.  Implementation is nearly the same ...
and well we would be even capable to verify that thread_id is even
valid proper.


Kai

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to