]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/profiler.cpp
Use default member initializers and constructor delegation
[libs/core.git] / source / debug / profiler.cpp
index c82558b01f6e119720e7d119d5c2cf6d2ef36a65..65cc71ced0876d6863f7613d6f99561e6a82244b 100644 (file)
@@ -7,11 +7,6 @@ using namespace std;
 namespace Msp {
 namespace Debug {
 
 namespace Msp {
 namespace Debug {
 
-Profiler::Profiler():
-       period(0),
-       inner(0)
-{ }
-
 void Profiler::set_period(unsigned p)
 {
        if(p==period)
 void Profiler::set_period(unsigned p)
 {
        if(p==period)
@@ -96,13 +91,5 @@ const Profiler::ScopeInfo &Profiler::get_scope(const string &sn) const
        return get_item(scopes, sn);
 }
 
        return get_item(scopes, sn);
 }
 
-
-Profiler::ScopeInfo::ScopeInfo():
-       calls(0),
-       calls_per_sec(0),
-       hist_pos(0),
-       hist_full(false)
-{ }
-
 } // namespace Debug
 } // namespace Msp
 } // namespace Debug
 } // namespace Msp