[Top][All Lists]
[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.
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/include il_coder.h,1.36,1.37 il_engine.h,1.32,1.33,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2184,1.2185
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet/engine cvm.h,1.39,1.40 cvm_call.c,1.62,1.63 cvm_dasm.c,1.45,1.46 cvm_lengths.c,1.8,1.9 cvmc.c,1.34,1.35 cvmc_setup.c,1.31,1.32 ilrun.c,1.28,1.29 process.c,1.41,1.42
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2184,1.2185
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet/engine cvm.h,1.39,1.40 cvm_call.c,1.62,1.63 cvm_dasm.c,1.45,1.46 cvm_lengths.c,1.8,1.9 cvmc.c,1.34,1.35 cvmc_setup.c,1.31,1.32 ilrun.c,1.28,1.29 process.c,1.41,1.42
- Index(es):