summaryrefslogtreecommitdiffstats
path: root/bitbake
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 /bitbake
parent6f38844000ada8fef146275613106c701f10f653 (diff)
downloadpoky-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>
Diffstat (limited to 'bitbake')
-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):
445 { 445 {
446 'name':'Recipe', 446 'name':'Recipe',
447 'qhelp':'The name of the recipe to which each task applies', 447 'qhelp':'The name of the recipe to which each task applies',
448# 'orderfield': _get_toggle_order(request, "recipe"), 448 'orderfield': _get_toggle_order(request, "recipe"),
449 'ordericon':_get_toggle_order_icon(request, "recipe"), 449 'ordericon':_get_toggle_order_icon(request, "recipe"),
450 }, 450 },
451 { 451 {
@@ -514,24 +514,32 @@ def tasks(request, build_id):
514 { 514 {
515 'name':'Time (secs)', 515 'name':'Time (secs)',
516 'qhelp':'How long it took the task to finish, expressed in seconds', 516 'qhelp':'How long it took the task to finish, expressed in seconds',
517 'orderfield': _get_toggle_order(request, "elapsed_time"),
518 'ordericon':_get_toggle_order_icon(request, "elapsed_time"),
517 'clclass': 'time_taken', 519 'clclass': 'time_taken',
518 'hidden' : 1, 520 'hidden' : 1,
519 }, 521 },
520 { 522 {
521 'name':'CPU usage', 523 'name':'CPU usage',
522 'qhelp':'Task CPU utilisation, expressed as a percentage', 524 'qhelp':'Task CPU utilisation, expressed as a percentage',
525 'orderfield': _get_toggle_order(request, "cpu_usage"),
526 'ordericon':_get_toggle_order_icon(request, "cpu_usage"),
523 'clclass': 'cpu_used', 527 'clclass': 'cpu_used',
524 'hidden' : 1, 528 'hidden' : 1,
525 }, 529 },
526 { 530 {
527 'name':'Disk I/O (ms)', 531 'name':'Disk I/O (ms)',
528 'qhelp':'Number of miliseconds the task spent doing disk input and output', 532 'qhelp':'Number of miliseconds the task spent doing disk input and output',
533 'orderfield': _get_toggle_order(request, "disk_io"),
534 'ordericon':_get_toggle_order_icon(request, "disk_io"),
529 'clclass': 'disk_io', 535 'clclass': 'disk_io',
530 'hidden' : 1, 536 'hidden' : 1,
531 }, 537 },
532 { 538 {
533 'name':'Log', 539 'name':'Log',
534 'qhelp':'The location in disk of the task log file', 540 'qhelp':'The location in disk of the task log file',
541 'orderfield': _get_toggle_order(request, "logfile"),
542 'ordericon':_get_toggle_order_icon(request, "logfile"),
535 'clclass': 'task_log', 543 'clclass': 'task_log',
536 'hidden' : 1, 544 'hidden' : 1,
537 }, 545 },