Scopira 20080306

scopira::agent::timeslice Class Reference

#include <timeslice.h>

Inheritance diagram for scopira::agent::timeslice:
scopira::agent::global_timeslice

List of all members.

Public Member Functions

 timeslice (const char *prefix)
 ~timeslice ()
 destructor

Friends

class scopira::agent::subtimeslice

Detailed Description

A RAII timing object to aid in code performance profiling. This will emit a report upon destruction.

Author:
Aleksander Demko

Constructor & Destructor Documentation

scopira::agent::timeslice::timeslice ( const char *  prefix)

Basic constructor. Will report time upon destruction.

Parameters:
prefixthe output prefix to print when printing the report If this is null, no report will be printed (useful to disable a timeslice)
Author:
Aleksander Demko

The documentation for this class was generated from the following file: