Changeset 371 for trunk/nv/core/profiler.hh
- Timestamp:
- 05/22/15 13:25:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/core/profiler.hh
r368 r371 16 16 #include <nv/core/common.hh> 17 17 #include <nv/stl/singleton.hh> 18 #include <nv/stl/string.hh> 18 19 #include <unordered_map> 19 20 … … 40 41 } 41 42 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 ); 44 45 void start(); 45 46 bool stop(); … … 62 63 ~profiler(); 63 64 64 void start_profile( const char*tag );65 void start_profile( const string_ref& tag ); 65 66 void stop_profile(); 66 67 public: … … 69 70 void log_report(); 70 71 private: 71 void log_node_children( const std::string& ind, const node* n );72 void log_node_children( uint32 indent, const node* n ); 72 73 node* m_root; 73 74 node* m_current; … … 77 78 { 78 79 public: 79 profiler_guard( const char*tag )80 profiler_guard( string_ref tag ) 80 81 { 81 82 profiler::pointer()->start_profile( tag );
Note: See TracChangeset
for help on using the changeset viewer.