struct MyGlobalProfiler
struct MyGlobalProfiler: public mrpt::system::CTimeLogger { // construction MyGlobalProfiler(); MyGlobalProfiler(const MyGlobalProfiler&); MyGlobalProfiler(MyGlobalProfiler&&); // methods MyGlobalProfiler& operator = (const MyGlobalProfiler&); MyGlobalProfiler& operator = (MyGlobalProfiler&&); void enable(bool enabled = true); void disable(); bool isEnabled() const; void enableKeepWholeHistory(bool enable = true); bool isEnabledKeepWholeHistory() const; void registerUserMeasure( const std::string_view& event_name, const double value, const bool is_time = false ); const std::string& getName() const; void setName(const std::string& name); };
Inherited Members
public: // structs struct TMsg; struct TCallData; struct TCallStats; // methods CTimeLogger& operator = (const CTimeLogger& o); CTimeLogger& operator = (CTimeLogger&& o); std::string getStatsAsText(const size_t column_width = 80) const; void getStats(std::map<std::string, TCallStats>& out_stats) const; void dumpAllStats(const size_t column_width = 80) const; void clear(bool deep_clear = false); void saveToCSVFile(const std::string& csv_file) const; void saveToMFile(const std::string& m_file) const; void enter(const std::string_view& func_name); double leave(const std::string_view& func_name); double getMeanTime(const std::string& name) const; double getLastTime(const std::string& name) const;