Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

read_timing.C File Reference

#include <sys/time.h>
#include <Basics.H>
#include <BasicsAllocator.H>
#include <BufStream.H>
#include <Generics.H>
#include <FS.H>
#include <list>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <getopt.h>
#include "nfs_prot.h"
#include <ReposUI.H>
#include "read_timing_common.H"
#include <iomanip>

Go to the source code of this file.

Classes

class  Histogram

Defines

#define NUM_NFS_PROCS   18

Typedefs

typedef Sequence< Time_PointTime_Point_Seq
typedef list< LongId_Point,
Basics::Allocator< LongId_Point > > 
LongId_Point_List
typedef Table< Source_Interval,
Delta_Time >::Default 
Interval_Times
typedef Table< Source_Interval,
Delta_Time >::Iterator 
Interval_Times_Iter
typedef Table< Source_Interval,
unsigned long >::Default 
Interval_Counts
typedef Table< Source_Interval,
unsigned long >::Iterator 
Interval_Counts_Iter
typedef Table< Source_Interval,
Histogram * >::Default 
Interval_Histos
typedef Table< Source_Interval,
Histogram * >::Iterator 
Interval_Histos_Iter
typedef Table< Source_Interval,
LongId_Point_List * >::Default 
LongId_Intervals
typedef Table< Source_Interval,
LongId_Point_List * >::Iterator 
LongId_Intervals_Iter
typedef list< Call_Data, Basics::Allocator<
Call_Data > > 
Call_List

Functions

ostream & operator<< (ostream &out, const Source_Interval &interval)
bool LongId_Point_Slower (const LongId_Point &a, const LongId_Point &b)
Interval_Timesoperator+= (Interval_Times &lhs, const Interval_Times &rhs)
template<class K, class V>
K * table_keys (const typename Table< K, V >::Default &table)
void sorted_slow_calls_insert (Call_List &slow_calls, const Call_Data &new_call)
ostream & operator<< (ostream &s, const LongId &longid)
void parse (int optind, int argc, char *const argv[], Proc_Totals totals[])
int main (int argc, char *const argv[])


Define Documentation

#define NUM_NFS_PROCS   18
 

Definition at line 779 of file read_timing.C.

Referenced by main(), and parse().


Typedef Documentation

typedef list<Call_Data, Basics::Allocator<Call_Data> > Call_List
 

Definition at line 698 of file read_timing.C.

typedef Table<Source_Interval, unsigned long>::Default Interval_Counts
 

Definition at line 331 of file read_timing.C.

typedef Table<Source_Interval, unsigned long>::Iterator Interval_Counts_Iter
 

Definition at line 332 of file read_timing.C.

typedef Table<Source_Interval, Histogram*>::Default Interval_Histos
 

Definition at line 334 of file read_timing.C.

typedef Table<Source_Interval, Histogram*>::Iterator Interval_Histos_Iter
 

Definition at line 335 of file read_timing.C.

typedef Table<Source_Interval, Delta_Time>::Default Interval_Times
 

Definition at line 328 of file read_timing.C.

typedef Table<Source_Interval, Delta_Time>::Iterator Interval_Times_Iter
 

Definition at line 329 of file read_timing.C.

typedef Table<Source_Interval, LongId_Point_List*>::Default LongId_Intervals
 

Definition at line 337 of file read_timing.C.

typedef Table<Source_Interval, LongId_Point_List*>::Iterator LongId_Intervals_Iter
 

Definition at line 338 of file read_timing.C.

typedef list<LongId_Point, Basics::Allocator<LongId_Point> > LongId_Point_List
 

Definition at line 326 of file read_timing.C.

typedef Sequence<Time_Point> Time_Point_Seq
 

Definition at line 237 of file read_timing.C.


Function Documentation

bool LongId_Point_Slower const LongId_Point a,
const LongId_Point b
 

Definition at line 320 of file read_timing.C.

References LongId_Point::time.

Referenced by main().

int main int  argc,
char *const   argv[]
 

Definition at line 1116 of file read_timing.C.

References Histogram::AddVal(), Text::cchars(), Proc_Totals::count, Table< K, V >::Default::Get(), LongId_Point_Slower(), Delta_Time::msecs(), NEW, NEW_ARRAY, NEW_CONSTR, Table< K, V >::Iterator::Next(), NUM_NFS_PROCS, parse(), Histogram::PrintHisto(), Table< K, V >::Default::Put(), Table< K, V >::Default::Size(), Proc_Totals::slowest_calls, Basics::OBufStream::str(), LongId_Point::time, Proc_Totals::time, Proc_Totals::time_histo, and usage().

Interval_Times& operator+= Interval_Times lhs,
const Interval_Times rhs
 

Definition at line 384 of file read_timing.C.

References Table< K, V >::Default::Get(), Table< K, V >::Iterator::Next(), and Table< K, V >::Default::Put().

ostream& operator<< ostream &  s,
const LongId longid
 

Definition at line 937 of file read_timing.C.

References LongId::length(), and LongId::value.

ostream& operator<< ostream &  out,
const Source_Interval interval
 

Definition at line 288 of file read_timing.C.

References Source_Interval::as_text().

void parse int  optind,
int  argc,
char *const   argv[],
Proc_Totals  totals[]
 

Definition at line 1052 of file read_timing.C.

References Proc_Totals::add_call(), Proc_Totals::count, Call_Data::duplicate, Call_Data::have_dupe, Proc_Totals::merge(), NEW_ARRAY, NUM_NFS_PROCS, parse(), Call_Data::proc, Proc_Totals::slowest_calls, Basics::OBufStream::str(), Proc_Totals::time, and Proc_Totals::time_histo.

Referenced by main(), and parse().

void sorted_slow_calls_insert Call_List slow_calls,
const Call_Data new_call
 

Definition at line 700 of file read_timing.C.

References Call_Data::elapsed_time.

Referenced by Proc_Totals::add_call().

template<class K, class V>
K* table_keys const typename Table< K, V >::Default &  table  ) 
 

Definition at line 401 of file read_timing.C.

References NEW_ARRAY.


Generated on Mon May 8 00:49:04 2006 for Vesta by  doxygen 1.4.2