Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Setup Class Reference

Profiler setup parameters. More...

#include <setup.h>

List of all members.

Public Types

enum  e { COMMUN_PORT = 25595, COMMUN_SHMEM_SIZE = 256*1024 }
 constants. More...

enum  eCommunType { COMMUN_SOCKET, COMMUN_SHMEM }
 type of communication. More...

enum  eLEVEL
 profiling granularity levels.


Public Methods

 Setup (char *options=NULL)
 Constructor. More...

void processOptions (char *options)
 Sets parameters according to command line options. More...


Public Attributes

Alloc alloc
 memory profiling.

Cpu cpu
 CPU profiling.

Mon mon
 monitor profiling.

Com com
 communication.


Private Methods

void processOption (char *option)
 Processes one command line option. More...

void setParameter (char *name, char *value)
 Sets parameter. More...


Detailed Description

Profiler setup parameters.

The parameters are obtained from command line during profiler start-up. Default values are used for missing ones.

Author:
Petr Luner, Marek Przeczek

Definition at line 47 of file setup.h.


Member Enumeration Documentation

enum Setup::e
 

constants.

Enumeration values:
COMMUN_PORT  default TCP port.
COMMUN_SHMEM_SIZE  default shared memory size (in bytes).

Definition at line 51 of file setup.h.

enum Setup::eCommunType
 

type of communication.

Enumeration values:
COMMUN_SOCKET  sockets (TCP/IP).
COMMUN_SHMEM  shared memory.

Definition at line 61 of file setup.h.


Constructor & Destructor Documentation

Setup::Setup char *    options = NULL
 

Constructor.

Sets setup parameters to their default values. If an argument is not NULL, given options from command-line are processed.

Parameters:
options  command-line options

Definition at line 38 of file setup.cpp.


Member Function Documentation

void Setup::processOption char *    option [private]
 

Processes one command line option.

Parameters:
option  option string

Definition at line 85 of file setup.cpp.

Referenced by processOptions().

void Setup::processOptions char *    options
 

Sets parameters according to command line options.

Parameters:
options  command line options string

Definition at line 59 of file setup.cpp.

Referenced by Setup().

void Setup::setParameter char *    name,
char *    value
[private]
 

Sets parameter.

Parameters:
name  parameter name
value  parameter value

Definition at line 94 of file setup.cpp.

Referenced by processOption().


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:30 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001