aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi Chintakunta <ravi.chintakunta@timesys.com>2014-01-25 18:27:35 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:38:52 +0000
commit47634378ac516496bcc155e001983973f241ee61 (patch)
tree1da978a703bad9bb854a7f1cf788258e27ac5526
parent6f38844000ada8fef146275613106c701f10f653 (diff)
downloadopenembedded-core-contrib-47634378ac516496bcc155e001983973f241ee61.tar.gz
bitbake: toaster: Added sorting to other columns in All tasks table
Added sorting to recipe, time, cpu, disk i/o and log columns of all tasks table (Bitbake rev: 277d076d777f26f215f01cac59302bcf9cf44a9c) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/toastergui/views.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 9a4b64a268..7b84df3340 100644
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -445,7 +445,7 @@ def tasks(request, build_id):
{
'name':'Recipe',
'qhelp':'The name of the recipe to which each task applies',
-# 'orderfield': _get_toggle_order(request, "recipe"),
+ 'orderfield': _get_toggle_order(request, "recipe"),
'ordericon':_get_toggle_order_icon(request, "recipe"),
},
{
@@ -514,24 +514,32 @@ def tasks(request, build_id):
{
'name':'Time (secs)',
'qhelp':'How long it took the task to finish, expressed in seconds',
+ 'orderfield': _get_toggle_order(request, "elapsed_time"),
+ 'ordericon':_get_toggle_order_icon(request, "elapsed_time"),
'clclass': 'time_taken',
'hidden' : 1,
},
{
'name':'CPU usage',
'qhelp':'Task CPU utilisation, expressed as a percentage',
+ 'orderfield': _get_toggle_order(request, "cpu_usage"),
+ 'ordericon':_get_toggle_order_icon(request, "cpu_usage"),
'clclass': 'cpu_used',
'hidden' : 1,
},
{
'name':'Disk I/O (ms)',
'qhelp':'Number of miliseconds the task spent doing disk input and output',
+ 'orderfield': _get_toggle_order(request, "disk_io"),
+ 'ordericon':_get_toggle_order_icon(request, "disk_io"),
'clclass': 'disk_io',
'hidden' : 1,
},
{
'name':'Log',
'qhelp':'The location in disk of the task log file',
+ 'orderfield': _get_toggle_order(request, "logfile"),
+ 'ordericon':_get_toggle_order_icon(request, "logfile"),
'clclass': 'task_log',
'hidden' : 1,
},