diff options
author | Javi Merino <javi.merino@arm.com> | 2016-01-28 14:47:58 +0000 |
---|---|---|
committer | Javi Merino <javi.merino@arm.com> | 2016-02-04 10:07:12 +0000 |
commit | c24076f200d50d137569de06839fd5205cb5b3a0 (patch) | |
tree | 6c004e0af47b468fddfc7242ccc742abc638121c /bart/sched | |
parent | 29f3d0f5cb0f7e5a741c049d4e29bbec6f03daad (diff) | |
download | bart-c24076f200d50d137569de06839fd5205cb5b3a0.tar.gz |
sched: SchedAssert: fix documentation for getResidency()
The example of the getResidency() function is incomplete. Fix the
example so that it matches the documentation.
Diffstat (limited to 'bart/sched')
-rwxr-xr-x | bart/sched/SchedAssert.py | 13 |
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 |