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
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
Cutelyst::EngineRequest
Definition
enginerequest.h:28
Cutelyst::Stats
Definition
stats.h:17
Cutelyst::Stats::profileEnd
virtual void profileEnd(const QString &action)
Definition
stats.cpp:37
Cutelyst::Stats::report
virtual QByteArray report()
Definition
stats.cpp:48
Cutelyst::Stats::profileStart
virtual void profileStart(const QString &action)
Definition
stats.cpp:28
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition
group-core-actions.dox:1
QByteArray
QString
Cutelyst
stats.h
Generated by
1.9.8