runtime/src/chpl-visual-debug.c
void chpl_vdebug_tag (const char *str) {
  struct rusage ru;
  struct timeval tv;
  struct timezone tz = {0,0};

  (void) gettimeofday (&tv, &tz);
  if ( getrusage (RUSAGE_SELF, &ru) < 0) {
    ru.ru_utime.tv_sec = 0;
    ru.ru_utime.tv_usec = 0;
    ru.ru_stime.tv_sec = 0;
    ru.ru_stime.tv_usec = 0;
  }
  chpl_dprintf (chpl_vdebug_fd, "Tag: %lld.%06ld %ld.%06ld %ld.%06ld %d %d %s\n",
                (long long) tv.tv_sec, (long) tv.tv_usec,
                (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec,
                (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec,
                chpl_nodeID, tag_no++, str);
  chpl_vdebug = 1;
}
// A unique tag number for sorting tags
A unique tag number for sorting tags
A unique tag number for sorting tags
void chpl_vdebug_tag (const char *str) {
  struct rusage ru;
  struct timeval tv;
  struct timezone tz = {0,0};
  (void) gettimeofday (&tv, &tz);
  if ( getrusage (RUSAGE_SELF, &ru) < 0) {
    ru.ru_utime.tv_sec = 0;
    ru.ru_utime.tv_usec = 0;
    ru.ru_stime.tv_sec = 0;
    ru.ru_stime.tv_usec = 0;
  }
  chpl_dprintf (chpl_vdebug_fd, "Tag: %lld.%06ld %ld.%06ld %ld.%06ld %d %d %s\n",
                (long long) tv.tv_sec, (long) tv.tv_usec,
                (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec,
                (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec,
                chpl_nodeID, tag_no++, str);
  chpl_vdebug = 1;
}
void chpl_vdebug_tag ( const char * str ) { struct rusage ru ; struct timeval tv ; struct timezone tz = { 0 , 0 } ; ( void ) gettimeofday ( & tv , & tz ) ; if ( getrusage ( RUSAGE_SELF , & ru ) < 0 ) { ru . ru_utime . tv_sec = 0 ; ru . ru_utime . tv_usec = 0 ; ru . ru_stime . tv_sec = 0 ; ru . ru_stime . tv_usec = 0 ; } chpl_dprintf ( chpl_vdebug_fd , " \n " , ( long long ) tv . tv_sec , ( long ) tv . tv_usec , ( long ) ru . ru_utime . tv_sec , ( long ) ru . ru_utime . tv_usec , ( long ) ru . ru_stime . tv_sec , ( long ) ru . ru_stime . tv_usec , chpl_nodeID , tag_no ++ , str ) ; chpl_vdebug = 1 ; }
A unique tag number for sorting tags
A unique tag number for sorting tags