COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Protected Attributes | Private Attributes | List of all members
ProfiledTestFixture Class Reference

Any test using this fixture (or a derivative) will be profiled. More...

#include <ProfiledTestFixture.hpp>

Inherited by ComponentBenchFixture, ProfiledFixture, and ProtoBenchmarkFixture.

Public Member Functions

 ProfiledTestFixture ()
 
 ~ProfiledTestFixture ()
 
void test_unit_start (boost::unit_test::test_unit const &)
 Start profiling when a test starts. More...
 
void test_unit_finish (boost::unit_test::test_unit const &)
 terminate library when a test ends and process the file More...
 

Protected Attributes

std::string m_prefix
 Start of the profile output name. More...
 
boost::filesystem::path m_profile_dir
 Directory to store the profile data in. More...
 
bool m_process_profile
 If set to true, the profiling tool will be run. More...
 

Private Attributes

std::string m_current_filename
 Storage for the file being profiled to. More...
 
std::string m_command
 The full command that was ran. More...
 

Detailed Description

Any test using this fixture (or a derivative) will be profiled.

Definition at line 30 of file ProfiledTestFixture.hpp.

Constructor & Destructor Documentation

Definition at line 40 of file ProfiledTestFixture.cpp.

Definition at line 72 of file ProfiledTestFixture.cpp.

Member Function Documentation

void test_unit_finish ( boost::unit_test::test_unit const &  unit)

terminate library when a test ends and process the file

Definition at line 98 of file ProfiledTestFixture.cpp.

void test_unit_start ( boost::unit_test::test_unit const &  unit)

Start profiling when a test starts.

Definition at line 79 of file ProfiledTestFixture.cpp.

Member Data Documentation

std::string m_command
private

The full command that was ran.

Definition at line 53 of file ProfiledTestFixture.hpp.

std::string m_current_filename
private

Storage for the file being profiled to.

Definition at line 51 of file ProfiledTestFixture.hpp.

std::string m_prefix
protected

Start of the profile output name.

Definition at line 44 of file ProfiledTestFixture.hpp.

bool m_process_profile
protected

If set to true, the profiling tool will be run.

Definition at line 48 of file ProfiledTestFixture.hpp.

boost::filesystem::path m_profile_dir
protected

Directory to store the profile data in.

Definition at line 46 of file ProfiledTestFixture.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin