Mercurial > hg > Game > Cerium
changeset 8:b02b69ebb89a
*** empty log message ***
author | gongo |
---|---|
date | Wed, 06 Feb 2008 13:41:15 +0900 |
parents | 1eb4cd18abfd |
children | 964b3b27846d |
files | TaskManager/Fifo/FifoTaskManagerImpl.cc TaskManager/Fifo/spe-main.cc TaskManager/Makefile.def TaskManager/Test/Sum/main.cpp |
diffstat | 4 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Fifo/FifoTaskManagerImpl.cc Wed Feb 06 11:59:01 2008 +0900 +++ b/TaskManager/Fifo/FifoTaskManagerImpl.cc Wed Feb 06 13:41:15 2008 +0900 @@ -100,14 +100,14 @@ data = q->data; if (data == MY_SPE_STATUS_READY) { - printf("[FIFO] finish\n"); + //printf("[FIFO] finish\n"); next_list = set_task(); if (next_list != NULL) { d = mailManager->create_mail((unsigned int)next_list); ret = append_mailQueue(ret, d); } } else { - printf("[PPE] recv from : 0x%x\n", data); + //printf("[PPE] recv from : 0x%x\n", data); taskInfo->check_task_finish((HTaskPtr)data); }
--- a/TaskManager/Fifo/spe-main.cc Wed Feb 06 11:59:01 2008 +0900 +++ b/TaskManager/Fifo/spe-main.cc Wed Feb 06 13:41:15 2008 +0900 @@ -20,7 +20,7 @@ connect->mailManager = _mailManager; manager->set_connect((DmaManager*)connect); - printf("[FIFO] start\n"); + //printf("[FIFO] start\n"); manager->init(); manager->run();
--- a/TaskManager/Makefile.def Wed Feb 06 11:59:01 2008 +0900 +++ b/TaskManager/Makefile.def Wed Feb 06 13:41:15 2008 +0900 @@ -20,7 +20,7 @@ IMPL_CELL_OBJS = $(IMPL_CELL_SRCS:.cpp=.o) CC = g++ -CFLAGS = -Wall -g +CFLAGS = -Wall -g -O2 LIBS = INCLUDE = -I../include/TaskManager \ No newline at end of file
--- a/TaskManager/Test/Sum/main.cpp Wed Feb 06 11:59:01 2008 +0900 +++ b/TaskManager/Test/Sum/main.cpp Wed Feb 06 13:41:15 2008 +0900 @@ -1,7 +1,7 @@ #include <stdio.h> #include <string.h> #include "TaskManager.h" -//#include "ppe_prof.h" +#include "ppe_prof.h" #define MAX 1024 @@ -23,7 +23,7 @@ HTaskPtr *task = new HTaskPtr[div]; HTaskPtr last; - //unsigned int ts, te; + unsigned int ts, te; manager = new TaskManager(1); manager->init(); @@ -65,14 +65,20 @@ manager->run_task(last); #endif + StartProf(ts); manager->run(); + StopProf(te, ts); + PrintProf(te); printf("manager : %d\n", out[0]); + StartProf(ts); out[0] = 0; for (i = 0; i < MAX; i++) { out[0] += i; } + StopProf(te, ts); + PrintProf(te); printf("for : %d\n", out[0]);