cutelyst 4.3.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst::Stats Class Reference

Public Member Functions

 Stats (EngineRequest *request)
 
virtual void profileEnd (const QString &action)
 
virtual void profileStart (const QString &action)
 
virtual QByteArray report ()
 

Detailed Description

Definition at line 16 of file stats.h.

Constructor & Destructor Documentation

◆ Stats()

Stats::Stats ( EngineRequest request)
explicit

Constructs a new stats object with the given parent.

Definition at line 16 of file stats.cpp.

◆ ~Stats()

Stats::~Stats ( )
virtual

Definition at line 23 of file stats.cpp.

Member Function Documentation

◆ profileEnd()

void Stats::profileEnd ( const QString action)
virtual

Called after an action is executed to stop counting it's time

Definition at line 37 of file stats.cpp.

◆ profileStart()

void Stats::profileStart ( const QString action)
virtual

Called before an action is executed to start counting it's time

Definition at line 28 of file stats.cpp.

References QString::begin().

◆ report()

QByteArray Stats::report ( )
virtual

Returns a text report of collected timmings

Definition at line 48 of file stats.cpp.

References QList::append(), QList::end(), and QString::number().