Skip to main content
gamedev.net
🔒 Locked

Timing Function Speed

Started by Aurora02 Dec 23, 2001 at 10:29 AM 5 replies 200+ views
Original Post
Aurora02
Aurora02
What methods are you guys using to measure the speed of your functions? I''ve heard a lot about vTune, but everything I''ve read implies that its for Intel CPUs only (I have an AMD TBird CPU). Anyone got any tips on how to find out how fast a function is executing?
sdoherty55
sdoherty55
I tried VTUNE on a while back on an AMD K6-2/550. At that time, it said that it only worked for Intel processors, but it seemed to work. I havn''t tried it on my AMD slot A machine because I believe that it only works for 30 days unless you purchase the software.
LOWORBIT
LOWORBIT
People keep hearing about intel''s optimizers but forget that vc++ has a profiling option it it also. I''ve personally found it alot easier then going and shelling out a ton of money on intel''s stuff when I already own various copies of vc++

Not sure when microsoft added the profiler to vc++ but version 5,6 have it. To use it, load up a project, and click the build menu, then at the very bottom click "profile...", it''ll either complain that your project isn''t set to use profiling, in which case goto project settings and turn it on under the build options, if that still dosen''t work, just remake the project, (copy source files to another folder and create a new project with those files). Then use the fuction timming option. This will run your project and when the program exits, it''ll will disply a full report of time spent in each function and time each was called in the debug window

Hope this help and saves you some time.
-Scott
DigitalDelusion
DigitalDelusion
and if you want to know how many cycles a function takes use rdtsc (asm op)
HardDrop - hard link shell extension."Tread softly because you tread on my dreams" - Yeats
DigitalDelusion
DigitalDelusion
and if you want to know how many cycles a function takes use rdtsc (asm op)
HardDrop - hard link shell extension."Tread softly because you tread on my dreams" - Yeats
LOWORBIT
LOWORBIT
oh and the VTUNE should work fine on your AMD, amd,cryix (dead), intel are all x86 based processors so at the core there the same.
-Scott
Aurora02
Aurora02
Thanks guys. I have been using VC++ 6 for quite some time now and have been blissfully unaware of the profiler. I''ve checked it out and its exactly what I was looking for. Cheers.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.