diff options
author | Björn Brandenburg <bbb@mpi-sws.org> | 2016-03-23 19:01:10 -0400 |
---|---|---|
committer | Björn Brandenburg <bbb@mpi-sws.org> | 2016-03-23 19:01:10 -0400 |
commit | c87286962316f07ad99c3ca57d515a9f56d52cd5 (patch) | |
tree | 53139a5b5472624b4f82d9c48e601b31d4b77343 /sched_trace/draw.py | |
parent | bfefe7fbef8dbd10dd764eafe0667b2771e5c9e4 (diff) |
st-draw: add more CPU colors
Diffstat (limited to 'sched_trace/draw.py')
-rw-r--r-- | sched_trace/draw.py | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/sched_trace/draw.py b/sched_trace/draw.py index 4ccf245..17401b6 100644 --- a/sched_trace/draw.py +++ b/sched_trace/draw.py | |||
@@ -15,13 +15,38 @@ ARROW_HEIGHT = 0.8 # (relative) | |||
15 | ALLOC_HEIGHT = 0.5 # (relative) | 15 | ALLOC_HEIGHT = 0.5 # (relative) |
16 | 16 | ||
17 | COLORS = [ | 17 | COLORS = [ |
18 | (0, 0, 0), | 18 | (0.0000, 0.1667, 1.0000), |
19 | (1, 0, 0), | 19 | (1.0000, 0.0833, 0.0000), |
20 | (0, 0, 1), | 20 | (0.0417, 1.0000, 0.0000), |
21 | (0, 1, 0), | 21 | (0.9583, 0.0000, 1.0000), |
22 | (1, 1, 0), | 22 | (0.9792, 1.0000, 0.0000), |
23 | (1, 0, 1), | 23 | (0.0000, 1.0000, 0.8958), |
24 | (0, 1, 1), | 24 | (0.3958, 0.0000, 1.0000), |
25 | (1.0000, 0.0000, 0.4792), | ||
26 | (0.6042, 1.0000, 0.0000), | ||
27 | (0.0000, 0.7292, 1.0000), | ||
28 | (0.0000, 1.0000, 0.3333), | ||
29 | (1.0000, 0.4583, 0.0000), | ||
30 | (0.0208, 0.0000, 1.0000), | ||
31 | (1.0000, 0.8333, 0.0000), | ||
32 | (0.2083, 0.0000, 1.0000), | ||
33 | (0.7917, 1.0000, 0.0000), | ||
34 | (0.5833, 0.0000, 1.0000), | ||
35 | (0.4167, 1.0000, 0.0000), | ||
36 | (0.7708, 0.0000, 1.0000), | ||
37 | (0.2292, 1.0000, 0.0000), | ||
38 | (1.0000, 0.0000, 0.8542), | ||
39 | (0.0000, 1.0000, 0.1458), | ||
40 | (1.0000, 0.0000, 0.6667), | ||
41 | (0.0000, 1.0000, 0.5208), | ||
42 | (1.0000, 0.0000, 0.2917), | ||
43 | (0.0000, 1.0000, 0.7083), | ||
44 | (1.0000, 0.0000, 0.1042), | ||
45 | (0.0000, 0.9167, 1.0000), | ||
46 | (1.0000, 0.2708, 0.0000), | ||
47 | (0.0000, 0.5417, 1.0000), | ||
48 | (1.0000, 0.6458, 0.0000), | ||
49 | (0.0000, 0.3542, 1.0000) | ||
25 | ] | 50 | ] |
26 | 51 | ||
27 | def cpu_color(cpu): | 52 | def cpu_color(cpu): |