Guitar
Profile.h
Go to the documentation of this file.
1 #ifndef PROFILE_H
2 #define PROFILE_H
3 
4 #include "TraceLogger.h"
5 #include <QElapsedTimer>
6 #include <QString>
7 
8 class Profile {
9 private:
10  QString func_;
11  QElapsedTimer timer_;
13  void log(QString const &s);
14 public:
15  Profile(const char *func);
16  ~Profile();
17 };
18 #define PROFILE Profile _profile(Q_FUNC_INFO)
19 
20 #endif // PROFILE_H
Definition: Profile.h:8
void log(QString const &s)
Definition: Profile.cpp:4
QString func_
Definition: Profile.h:10
~Profile()
Definition: Profile.cpp:18
TraceLogger trace_logger_
Definition: Profile.h:12
Profile(const char *func)
Definition: Profile.cpp:9
QElapsedTimer timer_
Definition: Profile.h:11
Definition: TraceLogger.h:7