Changeset 365 for trunk/src/core/profiler.cc
- Timestamp:
- 05/16/15 17:40:16 (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:global-ignores
set to
vs2012
vs2013
gmake
gmake-clang
-
Property
svn:global-ignores
set to
-
trunk/src/core/profiler.cc
r319 r365 8 8 #include <ios> 9 9 #include "nv/core/time.hh" 10 #include "nv/core/logging.hh" 10 11 11 12 using namespace nv; … … 97 98 } 98 99 99 100 100 void profiler::log_report() 101 101 { 102 102 m_root->stop(); 103 NV_LOG ( LOG_INFO,"-- PROFILER REPORT -----------------------------------------" );104 NV_LOG ( LOG_INFO, std::left << std::setw(24) << "TAG"103 NV_LOG_INFO( "-- PROFILER REPORT -----------------------------------------" ); 104 NV_LOG_STREAM( LOG_INFO, std::left << std::setw(24) << "TAG" 105 105 << std::setw(7) << "%PARNT" 106 106 << std::setw(7) << "CALLS" … … 108 108 << std::setw(10) << "AVG(ms)" ); 109 109 log_node_children( "", m_root ); 110 NV_LOG ( LOG_INFO,"-- PROFILER REPORT END -------------------------------------" );110 NV_LOG_INFO( "-- PROFILER REPORT END -------------------------------------" ); 111 111 m_root->start(); 112 112 } … … 119 119 if ( c->m_calls > 0 ) 120 120 { 121 NV_LOG ( LOG_INFO, std::left << std::setw(24) << ind + c->m_tag121 NV_LOG_STREAM( LOG_INFO, std::left << std::setw(24) << ind + c->m_tag 122 122 << std::setw(7) << std::setprecision(2) << std::fixed << ( (double)c->m_total_time_us / (double)c->m_parent->m_total_time_us ) * 100.0 123 123 << std::setw(7) << c->m_calls
Note: See TracChangeset
for help on using the changeset viewer.