Merge lp:~jamesodhunt/apport/bug-1256268 into lp:~apport-hackers/apport/trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~jamesodhunt/apport/bug-1256268 |
Merge into: | lp:~apport-hackers/apport/trunk |
Diff against target: |
404 lines (+395/-0) 2 files modified
data/general-hooks/resource_hogs.py (+205/-0) test/test_resource_hogs.py (+190/-0) |
To merge this branch: | bzr merge lp:~jamesodhunt/apport/bug-1256268 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt (community) | Needs Fixing | ||
Review via email: mp+198946@code.launchpad.net |
Description of the change
I've tried to specify "reasonable" default values, but we may need to tweak the following (or maybe even allow them to be configured via /etc/apport/)?:
# Consider this number of the top cpu-hogging processes.
max_hogs = 3
# Percentage threshold for cpu and memory hogs
cpu_threshold = 80
mem_threshold = 50
Unmerged revisions
- 2740. By James Hunt
-
* data/general-
hooks/resource_ hogs.py: pep8 clean-up.
* test/test_resource_ hogs.py: Test for resource_hogs.py. - 2739. By James Hunt
-
Make check_for_hogs() add the bug tag for consistency with the way the hog
data itself is added to the bug. - 2738. By James Hunt
-
data/general-
hooks/resource_ hogs.py: New general hook to capture details
of processes consuming large amounts of CPU and memory if they relate to
file in the package the user is reporting a bug against (LP: #1256268).
There are a couple of python test scripts here:
http:// people. canonical. com/~jhunt/ python/
... to trigger the conditions we are looking to detect.