cutelyst  4.5.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
stats.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2015-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef STATS_H
6 #define STATS_H
7 
8 #include <Cutelyst/cutelyst_export.h>
9 
10 #include <QObject>
11 
12 namespace Cutelyst {
13 
14 class EngineRequest;
15 class StatsPrivate;
16 class Stats
17 {
18  Q_DECLARE_PRIVATE(Stats)
19 public:
23  explicit Stats(EngineRequest *request);
24  virtual ~Stats();
25 
29  virtual void profileStart(const QString &action);
30 
34  virtual void profileEnd(const QString &action);
35 
39  virtual QByteArray report();
40 
41 protected:
42  StatsPrivate *d_ptr;
43 };
44 
45 } // namespace Cutelyst
46 
47 #endif // STATS_H
virtual void profileEnd(const QString &action)
Definition: stats.cpp:37
virtual QByteArray report()
Definition: stats.cpp:48
virtual void profileStart(const QString &action)
Definition: stats.cpp:28
Stats(EngineRequest *request)
Definition: stats.cpp:16
The Cutelyst namespace holds all public Cutelyst API.