Ignore:
Timestamp:
05/29/15 17:28:16 (10 years ago)
Author:
epyon
Message:
  • oops, missed src : got rid of to_string and other std::string utilities (except slurp) string no longer in nv namespace
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/profiler.cc

    r376 r380  
    108108        char buffer[128];
    109109        snprintf( buffer, 128, "%-23s %6s %6s %9s %6s", "TAG", "%PARNT", "CALLS", "TOTAL(ms)", "AVG(ms)" );
    110         NV_LOG_INFO( string_ref( buffer, strlen(buffer) ) );
     110        NV_LOG_INFO( string_ref( buffer, nvstrlen( buffer ) ) );
    111111        log_node_children( 0, m_root );
    112112        NV_LOG_INFO( "-- PROFILER REPORT END ---------------------------------" );
     
    122122                if ( c->m_calls > 0 )
    123123                {
    124                         double pparent  = ( (double)c->m_total_time_us / (double)c->m_parent->m_total_time_us ) * 100.f;
    125                         int calls       = c->m_calls;
    126                         double total_ms = c->m_total_time_us / 1000.f;
    127                         double avg_ms   = ( (double)c->m_total_time_us / (double)c->m_calls ) / 1000.f;
    128                         if ( indent > 0 ) memset( buffer, '-', indent );
     124                        f64 pparent = ( (f64)c->m_total_time_us / (f64)c->m_parent->m_total_time_us ) * 100.f;
     125                        uint32 calls       = c->m_calls;
     126                        f64 total_ms = c->m_total_time_us / 1000.f;
     127                        f64 avg_ms = ( (f64)c->m_total_time_us / (f64)c->m_calls ) / 1000.f;
     128                        if ( indent > 0 ) nvmemset( buffer, '-', indent );
    129129                        snprintf( buffer + indent, 128 - indent, "%*.*s %6.2f %6d %9.2f %6.2f", indent - 23, 23 - indent,
    130130                                c->m_tag.c_str(), pparent, calls, total_ms, avg_ms );
    131                         NV_LOG_INFO( string_ref( buffer, strlen( buffer ) ) );
     131                        NV_LOG_INFO( string_ref( buffer, nvstrlen( buffer ) ) );
    132132                        if ( c->m_children.size() > 0 )
    133133                        {
Note: See TracChangeset for help on using the changeset viewer.