[PD-cvs] pd/src kernel.c,1.1.2.89,1.1.2.90

Mathieu Bouchard matju at users.sourceforge.net
Sun Aug 19 09:06:30 CEST 2007


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14107

Modified Files:
      Tag: desiredata
	kernel.c 
Log Message:
disable profiler for real now


Index: kernel.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/kernel.c,v
retrieving revision 1.1.2.89
retrieving revision 1.1.2.90
diff -C2 -d -r1.1.2.89 -r1.1.2.90
*** kernel.c	18 Aug 2007 18:12:43 -0000	1.1.2.89
--- kernel.c	19 Aug 2007 07:06:27 -0000	1.1.2.90
***************
*** 387,396 ****
  static inline uint64 rdtsc() {uint64 x; __asm__ volatile (".byte 0x0f, 0x31":"=A"(x)); return x;}
  
! #if 0
! #define ENTER_PROF
! #define LEAVE_PROF
! #else
  #define ENTER_PROF uint64 t = rdtsc();
  #define LEAVE_PROF if (x->_class->gobj && ((t_gobj *)x)->dix) ((t_gobj *)x)->dix->elapsed += rdtsc() - t;
  #endif
  
--- 387,397 ----
  static inline uint64 rdtsc() {uint64 x; __asm__ volatile (".byte 0x0f, 0x31":"=A"(x)); return x;}
  
! //#define PROFILER
! #ifdef PROFILER
  #define ENTER_PROF uint64 t = rdtsc();
  #define LEAVE_PROF if (x->_class->gobj && ((t_gobj *)x)->dix) ((t_gobj *)x)->dix->elapsed += rdtsc() - t;
+ #else
+ #define ENTER_PROF
+ #define LEAVE_PROF
  #endif
  





More information about the Pd-cvs mailing list