LR-splines  0.5
Classes | Namespaces | Defines | Variables
Profiler.h File Reference

Simple profiling of computational tasks. More...

#include <iostream>
#include <string>
#include <map>

Go to the source code of this file.

Classes

class  LR::Profiler
 Simple class for profiling of computational tasks. More...
struct  LR::Profiler::Profile
 Stores profiling data for one computational task. More...
class  LR::utl::prof
 Convenience class to profile the local scope. More...

Namespaces

namespace  LR
namespace  LR::utl

Defines

#define PROFILE(label)   utl::prof _prof(label)
 Macro to add profiling of the local scope.
#define PROFILE1(label)
 Macro to add level 1 profiling of the local scope.
#define PROFILE2(label)
 Macro to add level 2 profiling of the local scope.
#define PROFILE3(label)
 Macro to add level 3 profiling of the local scope.
#define PROFILE4(label)
 Macro to add level 4 profiling of the local scope.

Variables

Profiler * LR::utl::profiler = 0
 Pointer to the one and only profiler object.

Detailed Description

Simple profiling of computational tasks.

Date:
May 18 2010
Author:
Knut Morten Okstad / SINTEF

Definition in file Profiler.h.


Define Documentation

#define PROFILE (   label)    utl::prof _prof(label)
#define PROFILE1 (   label)

Macro to add level 1 profiling of the local scope.

Definition at line 119 of file Profiler.h.

#define PROFILE2 (   label)

Macro to add level 2 profiling of the local scope.

Definition at line 126 of file Profiler.h.

#define PROFILE3 (   label)

Macro to add level 3 profiling of the local scope.

Definition at line 133 of file Profiler.h.

#define PROFILE4 (   label)

Macro to add level 4 profiling of the local scope.

Definition at line 140 of file Profiler.h.