aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKapileshwar Singh <kapileshwarsingh@gmail.com>2016-02-07 17:13:16 +0100
committerKapileshwar Singh <kapileshwarsingh@gmail.com>2016-02-07 17:13:16 +0100
commitb05fea5a0ba2d84317c38d1a515fabd056ee2e2c (patch)
tree6c004e0af47b468fddfc7242ccc742abc638121c
parent29f3d0f5cb0f7e5a741c049d4e29bbec6f03daad (diff)
parentc24076f200d50d137569de06839fd5205cb5b3a0 (diff)
downloadbart-b05fea5a0ba2d84317c38d1a515fabd056ee2e2c.tar.gz
Merge pull request #50 from JaviMerino/get_residency_doc_v2
sched: SchedAssert: fix documentation for getResidency()
-rwxr-xr-xbart/sched/SchedAssert.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/bart/sched/SchedAssert.py b/bart/sched/SchedAssert.py
index e20aecb..b0884f3 100755
--- a/bart/sched/SchedAssert.py
+++ b/bart/sched/SchedAssert.py
@@ -134,14 +134,15 @@ class SchedAssert(object):
a particular group of a topological level. For example:
::
- clusters=[]
- big = [1,2]
- little = [0,3,4,5]
+ from trappy.stats.Topology import Topology
- topology = Topology(clusters=clusters)
+ big = [1, 2]
+ little = [0, 3, 4, 5]
- level="cluster"
- node = [1,2]
+ topology = Topology(clusters=[little, big])
+
+ s = SchedAssert(trace, topology, pid=123)
+ s.getResidency("cluster", big)
This will return the residency of the task on the big cluster. If
percent is specified it will be normalized to the total runtime