Changeset 18813
- Timestamp:
- 05/09/06 18:13:10 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vapor/vpr/Perf/ProfileManager.cpp
r18331 r18813 48 48 49 49 // Initialize statics 50 TSObjectProxy<ProfileManager::ThreadProfileData> ProfileManager::mThreadData;50 TSObjectProxy<ProfileManager::ThreadProfileData> ProfileManager::mThreadData; 51 51 52 void ProfileManager::startProfile( const char * profileName , const unsigned int queueSize) 52 void ProfileManager::startProfile(const char* profileName, 53 const unsigned int queueSize) 53 54 { 54 55 ThreadProfileData& prof_data(*mThreadData); … … 56 57 if ( profileName != prof_data.mCurrentNode->getName() ) 57 58 { 58 prof_data.mCurrentNode = prof_data.mCurrentNode->getSubNode( profileName, queueSize); 59 prof_data.mCurrentNode = 60 prof_data.mCurrentNode->getSubNode(profileName, queueSize); 59 61 } 60 62 prof_data.mCurrentNode->startSample(); 61 63 } 62 64 63 void ProfileManager::stopProfile( void)65 void ProfileManager::stopProfile() 64 66 { 65 67 ThreadProfileData& prof_data(*mThreadData); … … 101 103 102 104 /* 103 std::vector<vpr::Thread*> cur_threads = vpr::ThreadManager::instance()->getThreads(); 105 std::vector<vpr::Thread*> cur_threads = 106 vpr::ThreadManager::instance()->getThreads(); 104 107 105 108 for(unsigned t=0;t<cur_threads.size();t++) 106 109 { 107 std::cout << "Print thread: " << (void*)cur_threads[t] << std::endl; 110 std::cout << "Print thread: " << (void*)cur_threads[t] 111 << std::endl; 108 112 std::cout << "Thread: " << cur_threads[t] << std::endl; 109 113 getRootNode(cur_threads[t])->printTree(); … … 113 117 } 114 118 115 116 void ProfileManager::reset( void ) 119 void ProfileManager::reset() 117 120 { 118 121 ThreadProfileData& prof_data(*mThreadData); … … 122 125 } 123 126 124 float ProfileManager::getTimeSinceReset( void)127 float ProfileManager::getTimeSinceReset() 125 128 { 126 129 ThreadProfileData& prof_data(*mThreadData);
