]> begriffs open source - cmsis-freertos/blob - Test/litani/templates/run-parallelism.jinja.gnu
Update README.md - branch main is now the base branch
[cmsis-freertos] / Test / litani / templates / run-parallelism.jinja.gnu
1 {#-
2  # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  #
4  # Licensed under the Apache License, Version 2.0 (the "License").
5  # You may not use this file except in compliance with the License.
6  # A copy of the License is located at
7  #
8  #     http://www.apache.org/licenses/LICENSE-2.0
9  #
10  # or in the "license" file accompanying this file. This file is
11  # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
12  # ANY KIND, either express or implied. See the License for the specific
13  # language governing permissions and limitations under the License.
14 -#}
15
16 $data << EOD
17 {% for sample in trace -%}
18 {{ sample["time"] }} {{ sample["running"] }} {{ n_proc }} {{ n_proc + 0.5 }} {% if loop.last %} "# cores: {{ n_proc}}" {% endif %}
19 {% endfor %}{# sample in trace #}
20 EOD
21
22 set terminal svg noenhanced size 720,320
23
24 set border 3 linecolor "#263238"
25
26 set ylabel "# parallel jobs"
27
28 set ytics nomirror tc "#263238" font "Helvetica,9"
29 set xtics nomirror
30
31 set xdata time
32 set timefmt "%Y-%m-%dT%H:%M:%SZ"
33 set format x "%H:%M:%S"
34 unset key
35
36 plot '$data' using 1:2 with lines lc "#ab47bc", \
37   '' using 1:3 with lines lc "#cc0000", \
38   '' using 1:4:5 with labels tc "#cc0000"