Mercurial > hg > Game > Cerium
changeset 1067:5ad8fb1dc70f draft
print_arch add.
author | tkaito |
---|---|
date | Fri, 17 Dec 2010 19:59:24 +0900 |
parents | 04a42a788fa2 |
children | ce992190388b |
files | Renderer/Engine/spe/DrawSpan.cc Renderer/Engine/viewer.cc TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/Cell/CellTaskManagerImpl.h TaskManager/Fifo/FifoTaskManagerImpl.cc TaskManager/Fifo/FifoTaskManagerImpl.h TaskManager/kernel/ppe/TaskManagerImpl.h |
diffstat | 7 files changed, 19 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/spe/DrawSpan.cc Thu Dec 16 01:30:45 2010 +0900 +++ b/Renderer/Engine/spe/DrawSpan.cc Fri Dec 17 19:59:24 2010 +0900 @@ -1,7 +1,7 @@ #include <stdlib.h> #include <string.h> +#include "polygon_pack.h" #include "DrawSpan.h" -#include "polygon_pack.h" #include "task_texture.h" #include "viewer_types.h" #include "Func.h"
--- a/Renderer/Engine/viewer.cc Thu Dec 16 01:30:45 2010 +0900 +++ b/Renderer/Engine/viewer.cc Fri Dec 17 19:59:24 2010 +0900 @@ -605,8 +605,6 @@ #if SPE_CREATE_POLYGON_CHECK check_matrix(matrix_info,sg); #endif - - #else //SceneGraphPtr sg = sgroot->getDrawSceneGraph();
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Thu Dec 16 01:30:45 2010 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Fri Dec 17 19:59:24 2010 +0900 @@ -136,7 +136,8 @@ HTask *task = activeTaskQueue->getFirst(); do { - printf("task_name = %s ,",ppeManager->get_task_name(task)); + printf("task_name = %s ,",ppeManager->get_task_name(task)); + printf("cpu = [%d]", task->cpu_type); } while ((task = activeTaskQueue->getNext(task)) != 0); printf("\n"); } @@ -321,6 +322,12 @@ } } +void CellTaskManagerImpl::print_arch() +{ + printf("CellTaskManager\n"); +} + + #ifdef __CERIUM_CELL__ TaskManagerImpl*
--- a/TaskManager/Cell/CellTaskManagerImpl.h Thu Dec 16 01:30:45 2010 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.h Fri Dec 17 19:59:24 2010 +0900 @@ -33,7 +33,7 @@ void start_profile() ; void polling(); void debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue, int spe_running_); - + void print_arch(); private: void send_taskList(int id); void show_dead_lock_info();
--- a/TaskManager/Fifo/FifoTaskManagerImpl.cc Thu Dec 16 01:30:45 2010 +0900 +++ b/TaskManager/Fifo/FifoTaskManagerImpl.cc Fri Dec 17 19:59:24 2010 +0900 @@ -200,6 +200,12 @@ others->polling(); } +void +FifoTaskManagerImpl::print_arch() +{ + printf("FifoTaskManagerImpl\n"); +} + /** * # # # # # # # # * Abstract Factory Pattern
--- a/TaskManager/Fifo/FifoTaskManagerImpl.h Thu Dec 16 01:30:45 2010 +0900 +++ b/TaskManager/Fifo/FifoTaskManagerImpl.h Fri Dec 17 19:59:24 2010 +0900 @@ -35,6 +35,8 @@ void set_runTaskList(); void sendTaskList(); + void print_arch(); + // call by user };
--- a/TaskManager/kernel/ppe/TaskManagerImpl.h Thu Dec 16 01:30:45 2010 +0900 +++ b/TaskManager/kernel/ppe/TaskManagerImpl.h Fri Dec 17 19:59:24 2010 +0900 @@ -44,6 +44,7 @@ virtual void append_activeTask(HTaskPtr); virtual void append_waitTask(HTaskPtr); virtual void polling() = 0; + virtual void print_arch() = 0; void check_task_finish(HTaskPtr task, QueueInfo<HTask> *wait_queue); void check_task_list_finish(SchedTask *s, TaskListPtr list, QueueInfo<HTask> *wait_queue);