From 63adef4fa6d3191eead68f0f71654f8fae56462f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Fri, 20 Nov 1998 11:33:46 -0800 Subject: [PATCH] I got profiling to work! Rev: src/threads.h:1.59 --- src/threads.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/threads.h b/src/threads.h index 269619d526..14051f9448 100644 --- a/src/threads.h +++ b/src/threads.h @@ -1,5 +1,5 @@ /* - * $Id: threads.h,v 1.58 1998/11/20 19:05:46 hubbe Exp $ + * $Id: threads.h,v 1.59 1998/11/20 19:33:46 hubbe Exp $ */ #ifndef THREADS_H #define THREADS_H @@ -370,8 +370,6 @@ struct thread_state { (_tmp)->thread_id=thread_id;\ DO_IF_PROFILING( (_tmp)->accounted_time=accounted_time; ) \ DO_IF_PROFILING( (_tmp)->time_base = gethrtime() - time_base; ) \ - DO_IF_DEBUG( DO_IF_PROFILING( if(accounted_time<0) fatal("Accounted time out of whack at swap out!\n");)) \ - DO_IF_DEBUG( DO_IF_PROFILING( if((_tmp)->time_base<0) fatal("time base out of whack at swap out!\n");)) \ SWAP_OUT_TRACE(_tmp); \ } while(0) @@ -389,8 +387,6 @@ struct thread_state { thread_id=(_tmp)->thread_id;\ DO_IF_PROFILING( accounted_time=(_tmp)->accounted_time; ) \ DO_IF_PROFILING( time_base = gethrtime() - (_tmp)->time_base; ) \ - DO_IF_DEBUG( DO_IF_PROFILING( if(accounted_time<0) fatal("Accounted time out of whack at swap in!\n");)) \ - DO_IF_DEBUG( DO_IF_PROFILING( if(time_base<0) fatal("time base out of whack at swap in!\n");)) \ SWAP_IN_TRACE(_tmp); \ } while(0) -- GitLab