This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Profile and improve CPU usage #53
Labels
Comments
We need a special build using special gcc options for profiling: |
Interesting results in under 30 seconds of analysis using oprofile:
This suggests that a lot of time is spent on Regex. |
Similar,
Seems like most time is spent on malloc and free (why?), and at least 20% of CPU time is spent on regex (including
MIME is not a huge bottleneck here:
|
|
|
Possibly the results above are not correct, and the actual issue may be |
Could be that |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Profile CPU usage to find out what causes appimaged to consume 100% CPU at startup for 10+ seconds.
For CPU bound applications:
Use a profiler in DEBUG mode to identify questionable parts of your code
Then switch to RELEASE mode and comment out the questionable sections of your code (stub it with nothing) until you see changes in performance.
https://stackoverflow.com/questions/375913/how-can-i-profile-c-code-running-on-linux/378024
The text was updated successfully, but these errors were encountered: