Ignore:
Timestamp:
05/22/15 13:25:59 (10 years ago)
Author:
epyon
Message:
  • profiler - removed sstream dependency - formating via snprintf
  • profiler - string_refs where applicable (still need string for unordered_map)
  • logger - removed sstream support
  • logger - log_sequence instead of detail logger functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/core/profiler.hh

    r368 r371  
    1616#include <nv/core/common.hh>
    1717#include <nv/stl/singleton.hh>
     18#include <nv/stl/string.hh>
    1819#include <unordered_map>
    1920
     
    4041                        }
    4142                protected:
    42                         node( const char* tag, node* parent );
    43                         node* request_child( const char* tag );
     43                        node( const string_ref& tag, node* parent );
     44                        node* request_child( const string_ref& tag );
    4445                        void start();
    4546                        bool stop();
     
    6263                ~profiler();
    6364
    64                 void start_profile( const char* tag );
     65                void start_profile( const string_ref& tag );
    6566                void stop_profile();
    6667        public:
     
    6970                void log_report();
    7071        private:
    71                 void log_node_children( const std::string& ind, const node* n );
     72                void log_node_children( uint32 indent, const node* n );
    7273                node* m_root;
    7374                node* m_current;
     
    7778        {
    7879        public:
    79                 profiler_guard( const char* tag )
     80                profiler_guard( string_ref tag )
    8081                {
    8182                        profiler::pointer()->start_profile( tag );
Note: See TracChangeset for help on using the changeset viewer.