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