Original Post
🔒 Locked
Timing Function Speed
Advertisement
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.
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.
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.
and if you want to know how many cycles a function takes use rdtsc (asm op)
and if you want to know how many cycles a function takes use rdtsc (asm op)
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement