finding slow parts in program

A

Alex

hi there,
in my program (made with Visual C++) is one subroutine that slows down
the entire programm quite a bit. I would like to know, which part of
this subroutine is causing this and why.
Does anybody know some command or a tool in Visual C++ to detect slow parts?
any help is appreciated
alex
 
R

roberts.noah

Alex said:
hi there,
in my program (made with Visual C++) is one subroutine that slows down
the entire programm quite a bit. I would like to know, which part of
this subroutine is causing this and why.
Does anybody know some command or a tool in Visual C++ to detect slow parts?
any help is appreciated
alex

You need a profiler and no, VC++ does not have one. There are several
that will work with VC++ generated programs though.
 
M

mlimber

Alex said:
hi there,
in my program (made with Visual C++) is one subroutine that slows down
the entire programm quite a bit. I would like to know, which part of
this subroutine is causing this and why.
Does anybody know some command or a tool in Visual C++ to detect slow parts?
any help is appreciated
alex

You want to use your profiler. See your documentation (e.g.,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_profile.asp),
or ask in a Microsoft-specific newsgroup, such as those listed here:

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

Cheers! --M
 
V

Victor Bazarov

Alex said:
in my program (made with Visual C++) is one subroutine that slows down
the entire programm quite a bit. I would like to know, which part of
this subroutine is causing this and why.
Does anybody know some command or a tool in Visual C++ to detect slow
parts?

If you have to be VC++ specific, please go to 'microsoft.public.vc.*'
newsgroup hierarchy. Here we talk C++ _language_.

That said, the tools to check/explore a program's performance are called
"profilers". They are [usually] extremely platform-specific, so the best
place to ask about them would be the newsgroup for your platform,
comp.os.ms-windows.programmer.win32.

Now, when it comes to primitive profiling, you could implement something
yourself. See what tools available to you on your platform to read and
compare _time_. 'clock()' is usually the function to use, alas, on MS
Windows it's not implemented correctly, IIRC.

Sometimes it is possible to deduce the performance bottlenecks just by
looking at the code. If your function is not too big, post it here and we
could try helping you. Without the code it's impossible, you understand.

V
 
H

Henryk

Alex said:
hi there,
in my program (made with Visual C++) is one subroutine that slows down
the entire programm quite a bit. I would like to know, which part of
this subroutine is causing this and why.
Does anybody know some command or a tool in Visual C++ to detect slow parts?
any help is appreciated
alex

Try Devpartner Profiler Community Edition (for free).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top