Click here to Skip to main content
15,902,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fastest code Pin
David Crow11-Jun-03 7:27
David Crow11-Jun-03 7:27 
GeneralRe: Fastest code Pin
doctorpi11-Jun-03 7:37
doctorpi11-Jun-03 7:37 
GeneralRe: Fastest code Pin
Mike Nordell12-Jun-03 8:44
Mike Nordell12-Jun-03 8:44 
GeneralRe: Fastest code Pin
doctorpi12-Jun-03 10:59
doctorpi12-Jun-03 10:59 
GeneralRe: Fastest code Pin
jhwurmbach11-Jun-03 23:32
jhwurmbach11-Jun-03 23:32 
GeneralRe: Fastest code Pin
jbarton11-Jun-03 7:51
jbarton11-Jun-03 7:51 
GeneralRe: Fastest code Pin
doctorpi11-Jun-03 7:56
doctorpi11-Jun-03 7:56 
GeneralRe: Fastest code Pin
jbarton11-Jun-03 8:43
jbarton11-Jun-03 8:43 
Recently, I have been using the Intel VTune performance analyzer. The version that I use supports Visual C++ 6.0. I typically use it to do time-based sampling, where the program collects samples of where the program is executing at a regular time interval.

It works Ok for my usage, but I find that sometimes I need to make calls into the profiler API so that I can isolate just the sections of code that I want to profile. I mostly work on a CAD application where most of the CPU time is spent idling (waiting for user input), so I only turn on the profiling once the user is done with whatever selections they need to make. These calls aren't necessary, but make it easier to figure out the sections that actually need improvements (by removing clock ticks for user idle from the profile data).

If most of the time spent in your program is doing calculations, you probably won't need to do these API calls, as the user input time will still be just a small percentage of the total time. If you don't add these calls, you can profile your program without needing to make any changes. If you add these calls, it only requires minor changes to your program.

Best regards,
John

GeneralRe: Fastest code Pin
basementman12-Jun-03 6:46
basementman12-Jun-03 6:46 
QuestionHow do you initialize a structure with a CPoint member? Pin
kleft11-Jun-03 5:38
kleft11-Jun-03 5:38 
AnswerRe: How do you initialize a structure with a CPoint member? Pin
valikac11-Jun-03 6:30
valikac11-Jun-03 6:30 
GeneralRe: How do you initialize a structure with a CPoint member? Pin
kleft11-Jun-03 7:40
kleft11-Jun-03 7:40 
GeneralRe: How do you initialize a structure with a CPoint member? Pin
David Crow11-Jun-03 8:07
David Crow11-Jun-03 8:07 
AnswerRe: How do you initialize a structure with a CPoint member? Pin
Anonymous12-Jun-03 7:09
Anonymous12-Jun-03 7:09 
Questionhow do I connect to other PCs with parallel port Pin
anhnt7911-Jun-03 5:29
anhnt7911-Jun-03 5:29 
AnswerRe: how do I connect to other PCs with parallel port Pin
valikac11-Jun-03 6:32
valikac11-Jun-03 6:32 
Generalftp problem Pin
t.ucello11-Jun-03 5:22
t.ucello11-Jun-03 5:22 
GeneralRe: ftp problem Pin
valikac11-Jun-03 6:42
valikac11-Jun-03 6:42 
GeneralRe: ftp problem Pin
basementman12-Jun-03 6:50
basementman12-Jun-03 6:50 
GeneralInstalling VC6 SP5 Pin
yarp11-Jun-03 5:09
yarp11-Jun-03 5:09 
GeneralRe: Installing VC6 SP5 Pin
SNathani11-Jun-03 8:21
SNathani11-Jun-03 8:21 
GeneralRe: Installing VC6 SP5 Pin
yarp11-Jun-03 20:05
yarp11-Jun-03 20:05 
GeneralCompiler switches Pin
doctorpi11-Jun-03 5:03
doctorpi11-Jun-03 5:03 
GeneralRe: Compiler switches Pin
markkuk11-Jun-03 7:37
markkuk11-Jun-03 7:37 
GeneralRe: Compiler switches Pin
doctorpi11-Jun-03 7:57
doctorpi11-Jun-03 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.