-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'johan/cumulative-cputime' into python
It's "aggregated", but still. This change adds another sort order, showing a process tree sorted by aggregated CPU time. Get there by pressing "m" twice. Fixes #124.
- Loading branch information
Showing
7 changed files
with
208 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import enum | ||
|
||
|
||
class SortOrder(enum.Enum): | ||
CPU = 1 | ||
MEMORY = 2 | ||
AGGREGATED_CPU = 3 | ||
|
||
def next(self): | ||
if self == SortOrder.CPU: | ||
return SortOrder.MEMORY | ||
if self == SortOrder.MEMORY: | ||
return SortOrder.AGGREGATED_CPU | ||
return SortOrder.CPU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.