class PidFunc; class Log { public: int SetFilename( string afilename ); int Open(); int Close(); int Process( int outputtype, time_t begints, time_t endts ); private: int ParseLine( string line, int iscan, time_t ts, int *ppid, int *pltype, PidFunc **pppidfunc ); int StartPidFunc( PidFunc *ppidfunc ); int ComputePidFunc( time_t ts, int pid ); int FinishPidFunc( int outputtype, time_t ts, int pid, PidFunc *pnextpidfunc ); int PrintSummary(); private: string filename; ifstream logstream; FuncNames funcnames; PidHash pidhash; AllExtremes maxgcomputes; AllExtremes mingcomputes; AllExtremes maxgelapseds; AllExtremes mingelapseds; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 5390 | Shawn Hladky |
modified p4loga: added --csv switch to output a coma-separated variable file identifying every command function recorded. No header or summary info is displayed. This file can be loaded in a spreadsheet application or imported into a database for further analysis. added support to identify the ClientProgram name from the log file. At this point, only server logs for a 2005.1 server have been (minimally) tested. |
||
#1 | 5389 | Shawn Hladky | Branching p4loga for modifications | ||
//guest/michael_shields/src/p4loga/log.h | |||||
#1 | 4955 | Michael Shields | Abstract out Log class. |