View Single Post
Re: Question on code profiling
Old
  (#4)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Question on code profiling - 20-01-2004

no problem with publishing that code ... although there is no nice doc yet

last weekend I worked on gcc compatability, therefore some stuff isnt funny debugged yet, especially CTime::CPUSpeed::getCyclesDifference.
Recording maximum and minimum cpu usage was once a feature but I had to remove it due to restructuring the code ... maybe that's something for the next weekend after the exams

this code has only be tested on a p4 2.66 and a Athlon1Ghz.

and pierre, I think the nose is the best method to profile, although you can use the debugger sometimes as a debugger, that's interesting too
Attached Files
File Type: cpp HPTime.cpp (4.8 KB, 420 views)
File Type: h HPTime.h (2.1 KB, 413 views)
File Type: cpp Profiler.cpp (7.6 KB, 522 views)
File Type: h Profiler.h (3.0 KB, 401 views)



Last edited by @$3.1415rin; 29-03-2004 at 18:56..
  
Reply With Quote