oprof_start_util.h File Reference

#include <cmath>
#include <string>
#include <vector>
Include dependency graph for oprof_start_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  daemon_status
 Store various daemon status data. More...

Functions

double ratio (double x1, double x2)
std::string const get_config_filename (std::string const &filename)
bool check_and_create_config_dir ()
std::string const format (std::string const &orig, uint const maxlen)
int do_exec_command (std::string const &cmd, std::vector< std::string > const &args=std::vector< std::string >())
std::string const do_open_file_or_dir (std::string const &base_dir, bool dir_only)
bool verify_argument (std::string const &str)

Detailed Description

Miscellaneous helpers for the GUI start

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

Definition in file oprof_start_util.h.


Function Documentation

bool check_and_create_config_dir (  ) 

check_and_create_config_dir - make sure config dir is accessible

Returns true if the dir is accessible.

Definition at line 155 of file oprof_start_util.cpp.

References create_dir(), and get_config_filename().

Referenced by oprof_start::load_config_file().

Here is the call graph for this function:

Here is the caller graph for this function:

int do_exec_command ( std::string const &  cmd,
std::vector< std::string > const &  args = std::vector< std::string >() 
)
std::string const do_open_file_or_dir ( std::string const &  base_dir,
bool  dir_only 
)
std::string const format ( std::string const &  orig,
uint const   maxlen 
)
std::string const get_config_filename ( std::string const &  filename  ) 
double ratio ( double  x1,
double  x2 
) [inline]

Definition at line 27 of file oprof_start_util.h.

Referenced by profile_container::select_filename().

Here is the caller graph for this function:

bool verify_argument ( std::string const &  str  ) 

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1