From: Gonzalo A. <ga...@us...> - 2007-03-08 17:42:04
|
Update of /cvsroot/mod-c/ehtml/src In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7222/src Modified Files: Profiling.cpp Log Message: Wrote void show_profile_function(ProfileFunction*): writes the function name being profiled to stderr. Index: Profiling.cpp =================================================================== RCS file: /cvsroot/mod-c/ehtml/src/Profiling.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Profiling.cpp 12 Oct 2006 21:10:36 -0000 1.6 --- Profiling.cpp 8 Mar 2007 17:42:00 -0000 1.7 *************** *** 34,37 **** --- 34,44 ---- #include <assert.h> + #include <iostream> + + void show_profile_function(ProfileFunction* pf) { + std::cerr << "ProfileFunction(name=" << pf->Spec()->name << ", file=" << pf->Spec()->file << ", line=" << pf->Spec()->line << "): " + << "_head=" << ProfileFunction::Head() << std::endl; + } + ProfileFunction* ProfileFunction::_head = NULL; unsigned long ProfileFunction::_cnt = 0; *************** *** 61,64 **** --- 68,76 ---- spec.file = file; spec.line = line; + // show_profile_function(this); + // if (_head) { + // std::cerr << "\thead: "; + // show_profile_function(_head); + // } _next = _head; _prev = NULL; |