GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PROFILE.HPP (3)

NAME

/wrkdirs/usr/ports/databases/galera/work/galera-25.3.5-src/gcomm/src/profile.hpp - Lightweight profiling utility.

CONTENTS

Synopsis

SYNOPSIS

#include ’gu_time.h’
#include <map>
#include <ostream>

    Classes

    class prof::Key    
class prof::Point    
class prof::Profile

    Macros

    #define profile_enter(__p)    
#define profile_leave(__p)

    Functions

    std::ostream & prof::operator<< (std::ostream &, const Key &)    
std::ostream & prof::operator<< (std::ostream &, const Profile &)

Detailed Description

Lightweight profiling utility.

Profiling utility suitable for getting runtime code profile information with minimal overhead. Macros profile_enter() and profile_leave() can be inserted around the code and will be expanded to profiling code if GCOMM_PROFILE is defined.

Example usage:

Profile prof("prof");

void func() { if (is_true()) { profile_enter(prof); // This is line 227 // Do something // ... profile_leave(prof); } else { profile_enter(prof); // This is line 250 // Do something else // ... profile_leave(prof); } }

// Somewhere else in your code log_info << prof;

Author

Generated automatically by Doxygen for GComm from the source code.

Search for    or go to Top of page |  Section 3 |  Main Index


Version 0.2.3 /WRKDIRS/USR/PORTS/DATABASES/GALERA/WORK/GALERA-25.3.5-SRC/GCOMM/SRC/PROFILE.HPP (3) Sun Apr 3 2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.