Cutelyst  2.1.0
Public Member Functions | List of all members
Cutelyst::Stats Class Reference

Public Member Functions

 Stats (Application *app)
 
virtual void profileEnd (const QString &action)
 
virtual void profileStart (const QString &action)
 
virtual QByteArray report ()
 

Detailed Description

Definition at line 29 of file stats.h.

Constructor & Destructor Documentation

Stats::Stats ( Application app)
explicit

Constructs a new stats object with the given parent.

Definition at line 31 of file stats.cpp.

References Cutelyst::Application::engine().

Member Function Documentation

void Stats::profileEnd ( const QString &  action)
virtual

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

Definition at line 51 of file stats.cpp.

void Stats::profileStart ( const QString &  action)
virtual

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

Definition at line 42 of file stats.cpp.

QByteArray Stats::report ( )
virtual

Returns a text report of collected timmings

Definition at line 62 of file stats.cpp.

Referenced by Cutelyst::Application::handleRequest().