-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is "sigc::slot_base::empty() const" doing? #156
Comments
https://git.gnome.org/browse/libsigcplusplus/tree/sigc++/functors/slot_base.h#n329
My best guess is that the amount of calls to this method + induced cache misses are responsible for your results. Would be interesting to know how many times this method is called during signal emission. Edit: Expressions in brackets are negated. |
Er... how can I find out the number of calls (is this the 416852x)? (I'm a total noob to profiling, actually). I'm not having performance issues on x86, but there are some performance issues on android for some games, but since there is no sane way to profile native code on android, I decided to try to see if something obvious comes up while profiling for x86. |
I never used gprof before, but it does say "calls" in the column header, so that's what I'd suspect :)
Have you looked into GPU profiling too? Many of the bottlenecks I saw 3 years ago were due to rendering. Although To the Moon lagged heavily and I don't believe that was due to GPU work.. |
Trying to profile mkxp using gprof, I found that the call "sigc::slot_base::empty() const" had consumed a relatively huge CPU time. Any idea what this might be related to?
My output from gprof is here: https://drive.google.com/open?id=0Bxvz3wbxE2UXX0stZ0lJMFJsVVE
A visualization of the same here: https://drive.google.com/open?id=0Bxvz3wbxE2UXZ0JLOS1xQV9Uc0U
(gprof2dot, track the green boxes)
The text was updated successfully, but these errors were encountered: