Changeset 399 for trunk/src/core/profiler.cc
- Timestamp:
- 06/13/15 11:47:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/profiler.cc
r395 r399 30 30 } 31 31 32 void profiler::start_profile( const string_ ref& tag )32 void profiler::start_profile( const string_view& tag ) 33 33 { 34 34 if ( tag != m_current->m_tag ) … … 47 47 } 48 48 49 profiler::node::node( const string_ ref& tag, node* parent )49 profiler::node::node( const string_view& tag, node* parent ) 50 50 : m_tag( tag.to_string() ) 51 51 , m_parent( parent ) … … 58 58 } 59 59 60 profiler::node* profiler::node::request_child( const string_ ref& tag )60 profiler::node* profiler::node::request_child( const string_view& tag ) 61 61 { 62 62 std::string stag( tag.to_string() ); … … 110 110 char buffer[128]; 111 111 snprintf( buffer, 128, "%-23s %6s %6s %9s %6s", "TAG", "%PARNT", "CALLS", "TOTAL(ms)", "AVG(ms)" ); 112 NV_LOG_INFO( string_ ref( buffer, nvstrlen( buffer ) ) );112 NV_LOG_INFO( string_view( buffer, nvstrlen( buffer ) ) ); 113 113 log_node_children( 0, m_root ); 114 114 NV_LOG_INFO( "-- PROFILER REPORT END ---------------------------------" ); … … 131 131 snprintf( buffer + indent, 128 - indent, "%*.*s %6.2f %6d %9.2f %6.2f", indent - 23, 23 - indent, 132 132 c->m_tag.c_str(), pparent, calls, total_ms, avg_ms ); 133 NV_LOG_INFO( string_ ref( buffer, nvstrlen( buffer ) ) );133 NV_LOG_INFO( string_view( buffer, nvstrlen( buffer ) ) ); 134 134 if ( c->m_children.size() > 0 ) 135 135 {
Note: See TracChangeset
for help on using the changeset viewer.