@@ -85,7 +87,7 @@
{{match.get_executed_display}}
|
- {{match.get_outcome_display}}
+ {{match.get_outcome_display}}
|
{{match.build.completed_on|date:"d/m/y H:i"}}
@@ -103,7 +105,7 @@
{% elif task.outcome == task.OUTCOME_COVERED %}
-
- Task covered by
+ Task covered by
-
@@ -114,7 +116,7 @@
{%elif task.outcome == task.OUTCOME_CACHED%}
-
- Log file
+ Log file
-
{% for t in task.get_related_setscene %} {{t.logfile}} {% endfor %}
@@ -132,10 +134,10 @@
{% if task.task_executed %}
Executed
-
+
{% else %}
Not Executed
-
+
{% endif %}
@@ -146,12 +148,12 @@
-
{{task.sstate_checksum}}
-
{% if task.sstate_result != task.SSTATE_NA %}
+
Attempting to restore output from sstate cache
-
+
-
File searched for
@@ -189,7 +191,7 @@
{% elif task.sstate_result == task.SSTATE_RESTORED %}
- Output successfully restored from sstate cache.
+ Output successfully restored from sstate cache.
{% endif %}
@@ -221,7 +223,7 @@
{% for dep in deps %}
- {{dep.recipe.name}}_{{dep.recipe.version}} {{dep.task_name}}
{% empty %}
- This task has no dependencies
+ - This task has no dependencies
{% endfor %}
@@ -234,7 +236,7 @@
{% for dep in rdeps %}
{{dep.recipe.name}}_{{dep.recipe.version}} {{dep.task_name}}
{% empty %}
- This task has no reverse dependencies
+ This task has no reverse dependencies
{% endfor %}
@@ -243,21 +245,27 @@
{%if task.task_executed %}
Performance
+ {% if task.elapsed_time > 0.01 %}
-
Time (secs)
- - {{task.elapsed_time|format_none_and_zero}}
+ - {{task.elapsed_time|format_none_and_zero|floatformat:2}}
+ {% endif %}
+ {% if task.cpu_usage > 0 %}
-
CPU usage
- - {{task.cpu_usage|format_none_and_zero}}
+ - {{task.cpu_usage|format_none_and_zero|floatformat:2}}%
+ {% endif %}
+ {% if task.disk_io > 0 %}
-
Disk I/O (ms)
- {{task.disk_io|format_none_and_zero}}
+ {% endif %}
{%endif%}
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
index 857680b350..2d339d623f 100644
--- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
@@ -70,16 +70,16 @@ def sortcols(tablecols):
return sorted(tablecols, key = lambda t: t['name'])
@register.filter
-def task_color(task_object, show_green=False):
+def task_color(task_object, show_colour=False):
""" Return css class depending on Task execution status and execution outcome.
By default, green is not returned for executed and successful tasks;
show_green argument should be True to get green color.
"""
if not task_object.task_executed:
return 'class=muted'
- elif task_object.outcome == task_object.OUTCOME_FAILED:
+ elif task_object.outcome == task_object.OUTCOME_FAILED and show_colour:
return 'class=error'
- elif task_object.outcome == task_object.OUTCOME_SUCCESS and show_green:
+ elif task_object.outcome == task_object.OUTCOME_SUCCESS and show_colour:
return 'class=green'
else:
return ''
|