Gaudi Framework, version v23r4

Home   Generated: Mon Sep 17 2012
Public Member Functions | Protected Member Functions | Private Attributes

Google::CPUProfiler Class Reference

Auditor using the Google CPU Profiler. More...

#include <GoogleAuditor.cpp>

Inheritance diagram for Google::CPUProfiler:
Inheritance graph
[legend]
Collaboration diagram for Google::CPUProfiler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CPUProfiler (const std::string &name, ISvcLocator *pSvcLocator)

Protected Member Functions

void google_before (const std::string &s)
 Start the google tool.
void google_after (const std::string &)
 stop the google tool
bool alreadyRunning ()
 check if we are already running the tool

Private Attributes

bool m_running

Detailed Description

Auditor using the Google CPU Profiler.

See

http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html

For more details on usage.

Author:
Chris Jones
Date:
18/04/2011

Definition at line 487 of file GoogleAuditor.cpp.


Constructor & Destructor Documentation

Google::CPUProfiler::CPUProfiler ( const std::string name,
ISvcLocator pSvcLocator 
) [inline]

Definition at line 492 of file GoogleAuditor.cpp.

      : AuditorBase ( name, pSvcLocator ),
        m_running   ( false )
    { }

Member Function Documentation

bool Google::CPUProfiler::alreadyRunning (  ) [inline, protected, virtual]

check if we are already running the tool

Implements Google::AuditorBase.

Definition at line 517 of file GoogleAuditor.cpp.

{ return m_running; }
void Google::CPUProfiler::google_after ( const std::string s ) [inline, protected, virtual]

stop the google tool

Implements Google::AuditorBase.

Definition at line 508 of file GoogleAuditor.cpp.

    {
      if ( m_running )
      {
        ProfilerStop();
        m_running = false;
      }
    }
void Google::CPUProfiler::google_before ( const std::string s ) [inline, protected, virtual]

Start the google tool.

Implements Google::AuditorBase.

Definition at line 499 of file GoogleAuditor.cpp.

    {
      if ( !m_running )
      {
        m_running = true;
        ProfilerStart((s+".prof").c_str());
      }
    }

Member Data Documentation

Definition at line 521 of file GoogleAuditor.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Sep 17 2012 13:49:59 for Gaudi Framework, version v23r4 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004