Update of /cvsroot/mod-c/ehtml/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7708/src
Modified Files:
Profiling.cpp
Log Message:
* Added profile_stubs(), which return the number of profiled functions.
Index: Profiling.cpp
===================================================================
RCS file: /cvsroot/mod-c/ehtml/src/Profiling.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Profiling.cpp 5 Oct 2006 15:28:36 -0000 1.4
--- Profiling.cpp 5 Oct 2006 16:01:16 -0000 1.5
***************
*** 7,10 ****
--- 7,12 ----
ProfileFunction* ProfileFunction::_head = NULL;
+ unsigned long ProfileFunction::_cnt = 0;
+
int ProfileRun::depth = 0;
ProfileFunction* ProfileRun::call_stack[MAX_DEPTH] = { NULL, };
***************
*** 36,39 ****
--- 38,42 ----
_next->_prev = this;
_head = this;
+ ++_cnt;
}
***************
*** 59,60 ****
--- 62,67 ----
}
+ unsigned long profile_stubs() {
+ return ProfileFunction::cnt();
+ }
+
|