CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2000
    Posts
    1,471

    How to find out why a program is running so slow?

    I have a program running really slow. I found that actually a function takes long time. But by debugging I don't know how to identify which piece of code within this function causes such slowness. Any guru here can tell me the best way to find out why? Thanks for your inputs.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How to find out why a program is running so slow?

    Run a profiler on the app.

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: How to find out why a program is running so slow?

    Profiling will give you a detailed analysis, but you could always just step through your program and observe which function calls take a long time to return.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured