dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/include il_coder.h,1.36,1.37 il_engine.


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_coder.h,1.36,1.37 il_engine.h,1.32,1.33
Date: Sat, 22 Feb 2003 07:03:00 -0500

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv23225/include

Modified Files:
        il_coder.h il_engine.h 
Log Message:


Rearrange method profiling so that it can be turned on and off
without without a #define.


Index: il_coder.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_coder.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** il_coder.h  30 Dec 2002 06:14:41 -0000      1.36
--- il_coder.h  22 Feb 2003 12:02:57 -0000      1.37
***************
*** 109,112 ****
--- 109,118 ----
  #define       IL_CODER_END_TOO_BIG    2               /* Method is too big 
for the cache */
  
+ /* 
+  * Profiling flags
+  */
+ 
+ #define IL_CODER_FLAG_IR_DUMP 1
+ #define IL_CODER_FLAG_METHOD_PROFILE 2
  /*
   * Coder class definition.
***************
*** 688,691 ****
--- 694,704 ----
  
        /*
+        * Set the different flags which enable or disable
+        * profiling, debugging etc.
+        */
+       void (*setFlags)(ILCoder *coder,int flags);
+ 
+       
+       /*
         * Sentinel string to catch missing methods in class tables.
         */
***************
*** 930,933 ****
--- 943,950 ----
  #define       ILCoderMarkBytecode(coder,offset) \
                        ((*((coder)->classInfo->markBytecode))((coder), 
(offset)))
+ 
+ #define ILCoderSetFlags(coder,flags) \
+       ((*((coder)->classInfo->setFlags))((coder), (flags)))
+ 
  #define       ILCoderMarkEnd(coder) \
                        ((*((coder)->classInfo->markEnd))((coder)))

Index: il_engine.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_engine.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** il_engine.h 17 Feb 2003 05:20:31 -0000      1.32
--- il_engine.h 22 Feb 2003 12:02:57 -0000      1.33
***************
*** 198,201 ****
--- 198,207 ----
  
  /*
+  *Set the flags for profiling, debugging etc
+  */
+ void ILExecProcessSetCoderFlags(ILExecProcess *process,
+                                                               int flags);
+ 
+ /*
   * Get the IL context associated with a process.
   */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]