Ignore:
Timestamp:
05/16/15 17:40:16 (10 years ago)
Author:
epyon
Message:
  • overhaul of logging: no longer stream operated no longer using STL no memory allocation shorthand macros fast file and console I/O
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:global-ignores set to
      vs2012
      vs2013
      gmake
      gmake-clang
  • trunk/src/core/profiler.cc

    r319 r365  
    88#include <ios>
    99#include "nv/core/time.hh"
     10#include "nv/core/logging.hh"
    1011
    1112using namespace nv;
     
    9798}
    9899
    99 
    100100void profiler::log_report()
    101101{
    102102        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"
    105105                << std::setw(7) << "%PARNT"
    106106                << std::setw(7) << "CALLS"
     
    108108                << std::setw(10) << "AVG(ms)" );
    109109        log_node_children( "", m_root );
    110         NV_LOG( LOG_INFO, "-- PROFILER REPORT END -------------------------------------" );
     110        NV_LOG_INFO( "-- PROFILER REPORT END -------------------------------------" );
    111111        m_root->start();
    112112}
     
    119119                if ( c->m_calls > 0 )
    120120                {
    121                         NV_LOG( LOG_INFO, std::left << std::setw(24) << ind + c->m_tag
     121                        NV_LOG_STREAM( LOG_INFO, std::left << std::setw(24) << ind + c->m_tag
    122122                                << std::setw(7) << std::setprecision(2) << std::fixed << ( (double)c->m_total_time_us / (double)c->m_parent->m_total_time_us ) * 100.0
    123123                                << std::setw(7) << c->m_calls
Note: See TracChangeset for help on using the changeset viewer.