Hi,
I have this app that have grown to be a monster
Now the app is sometimes slow and I cannot figure out which parts contribute to that. I know I can start disconnecting parts to figure out but that is time consuming. Is there a simple profiler? I only need to see method calls and time they consume,e so that I can optimize that.
KCache is a bit complex to analyze and could not find any good beginners documentation.
What do you guys use to profile and optimize your apps?
Profiling and Optimizing app
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Profiling and Optimizing app
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Re: Profiling and Optimizing app
I only know the profiling tools in Visual Studio, so i can't help with that.
But as a programmer you should have a general idea when the application is slow. What are the symptoms? Slow redraws? Slow reaction to user actions?
Do you use wxUpdateUIEvent? That's a real performance killer.
But as a programmer you should have a general idea when the application is slow. What are the symptoms? Slow redraws? Slow reaction to user actions?
Do you use wxUpdateUIEvent? That's a real performance killer.
Use the source, Luke!
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: Profiling and Optimizing app
I have a general view, since the slow part is on saving file, so at least I have idea of where it happens. But the boggling part is, it sometimes does not happen. So I don't get the exactness of the problem.doublemax wrote:I only know the profiling tools in Visual Studio, so i can't help with that.
But as a programmer you should have a general idea when the application is slow. What are the symptoms? Slow redraws? Slow reaction to user actions?
Do you use wxUpdateUIEvent? That's a real performance killer.
After sifting I have only two options:
1. Isolating different functionalities to get the offending block and then deal with that
2. Use Profiler and go straight to the problem.
I have never used VS since VS2005 If I remember well so it cannot help. I guess I have to go to the first option, no choice unfortunately
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Re: Profiling and Optimizing app
Using GCC compiler you can use two different profilers:
* GCOV: https://gcc.gnu.org/onlinedocs/gcc/Gcov.html#Gcov
* GPROF: There are some toturials in the Web.
If the bottleneck is saving to a file, then my wild guess is that your best option is to use std::streams (or wx' streams). Also, the way you fill the file may be sub-optimal.
* GCOV: https://gcc.gnu.org/onlinedocs/gcc/Gcov.html#Gcov
* GPROF: There are some toturials in the Web.
If the bottleneck is saving to a file, then my wild guess is that your best option is to use std::streams (or wx' streams). Also, the way you fill the file may be sub-optimal.
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: Profiling and Optimizing app
Thanks for pointing out. I will check the links.Manolo wrote:Using GCC compiler you can use two different profilers:
* GCOV: https://gcc.gnu.org/onlinedocs/gcc/Gcov.html#Gcov
* GPROF: There are some toturials in the Web.
If the bottleneck is saving to a file, then my wild guess is that your best option is to use std::streams (or wx' streams). Also, the way you fill the file may be sub-optimal.
I develop mostly on MacOs but won't mind using Linux if that solves my problem.
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?