cutelyst  5.0.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_GADGET
19  Q_DECLARE_PRIVATE(Stats) // cppcheck-suppress unusedPrivateFunction
20  Q_DISABLE_COPY(Stats)
21 public:
25  explicit Stats(EngineRequest *request);
26  virtual ~Stats();
27 
31  virtual void profileStart(const QString &action);
32 
36  virtual void profileEnd(const QString &action);
37 
41  virtual QByteArray report();
42 
43 protected:
44  StatsPrivate *d_ptr;
45 };
46 
47 } // namespace Cutelyst
48 
49 #endif // STATS_H
The Cutelyst namespace holds all public Cutelyst API.