cutelyst 4.3.0
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_global.h>
9
10#include <QObject>
11
12namespace Cutelyst {
13
14class EngineRequest;
15class StatsPrivate;
16class Stats
17{
18 Q_DECLARE_PRIVATE(Stats)
19public:
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
41protected:
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
The Cutelyst namespace holds all public Cutelyst API.