utility.h File Reference

#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.

Data Structures

class  noncopyable
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

Definition in file utility.h.


Function Documentation

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

Definition at line 90 of file utility.h.

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

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1