Mercurial > hg > Members > kono > Cerium
changeset 924:ad6903dd6419
show dma wait format
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 30 Jul 2010 16:40:30 +0900 |
parents | e015a4e5e4b0 |
children | 9da903858400 |
files | TaskManager/Cell/spe/CellDmaManager.cc TaskManager/ChangeLog TaskManager/Makefile.def example/word_count3/Func.h example/word_count3/Makefile.def |
diffstat | 5 files changed, 21 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Cell/spe/CellDmaManager.cc Fri Jul 30 15:24:13 2010 +0900 +++ b/TaskManager/Cell/spe/CellDmaManager.cc Fri Jul 30 16:40:30 2010 +0900 @@ -131,11 +131,20 @@ double r = ((double)global_busy_time)/((double)( global_busy_time+global_wait_time+global_mail_time ))*100.0; + + double d = ((double)global_wait_time)/((double)( + global_busy_time+global_wait_time+global_mail_time + ))*100.0; + + double m = ((double)global_mail_time)/((double)( + global_busy_time+global_wait_time+global_mail_time + ))*100.0; + s->printf("spu%d: busy_time = %lld" - " wait_time = %lld" - " mail_time = %lld" - " busy_ratio = %g%%\n", cpu, global_busy_time, - global_wait_time, global_mail_time, r); + " wait_time = %lld(%.3g%%), " + " mail_time = %lld(%.3g%%), " + " busy_ratio = %.3g%%\n", cpu, global_busy_time, + global_wait_time, d, global_mail_time, m, r); }
--- a/TaskManager/ChangeLog Fri Jul 30 15:24:13 2010 +0900 +++ b/TaskManager/ChangeLog Fri Jul 30 16:40:30 2010 +0900 @@ -1,3 +1,7 @@ +2010-7-30 Shinji KONO <kono@ie.u-ryukyu.ac.jp> + + TASK_LIST_MAIL でない方が高速なみたい + 2010-7-24 Shinji KONO <kono@ie.u-ryukyu.ac.jp> やっぱり、load module のlinkの解決はやらないといけないので、
--- a/TaskManager/Makefile.def Fri Jul 30 15:24:13 2010 +0900 +++ b/TaskManager/Makefile.def Fri Jul 30 16:40:30 2010 +0900 @@ -29,8 +29,8 @@ ABIBIT = 32 -#OPT = -O9 -OPT = -g -DTASK_LIST_MAIL -O9 +OPT = -g -O9 +# OPT = -g -DTASK_LIST_MAIL -O9 CC = g++ CFLAGS = -Wall `sdl-config --cflags` -m$(ABIBIT) $(OPT)