utility.h File Reference

General purpose C++ utility. More...

#include <cstddef>
Include dependency graph for utility.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  noncopyable
 noncopyable : object of class derived from this class can't be copied and isn't copy-constructible More...
class  scoped_ptr< T >
class  scoped_array< T >

Functions

double op_ratio (double count, double total)

Detailed Description

General purpose C++ utility.

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
Philippe Elie
John Levon

Function Documentation

double op_ratio ( double  count,
double  total 
) [inline]
Parameters:
count 
total return total == 0 ? 1.0 : (count / total);

Referenced by arc_recorder::process(), profile_container::select_filename(), and profile_container::select_symbols().


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1