class AllExtremes; class FuncNames; class FuncStats; class LinkedTS; class PidFunc { public: ~PidFunc(); time_t GetStartTS(); int GetPid(); string GetUser(); string GetClient(); string GetHost(); PidFunc *GetNextPidFunc(); void SetNextPidFunc( PidFunc *anextpidfunc ); int Init( time_t ats, int apid, string line, int iscan, int ispan, FuncNames *pfuncnames ); void IncrementRefCount(); int DecrementRefCount(); void Compute( time_t ts, AllExtremes *maxgcomputes, AllExtremes *mingcomputes ); void Finish( time_t ts, AllExtremes *maxgelapseds, AllExtremes *mingelapseds ); void PrintDetail( FuncNames *pfuncnames ); void PrintCSV( FuncNames *pfuncnames ); void PrintPretty( string prefix, FuncNames *pfuncnames ); private: time_t startts; bool seencompute; LinkedTS *pfirstcomputets; LinkedTS *plastcomputets; double compute; string StripComma(string s); bool seenfinish; time_t finishts; double elapsed; int pid; string user; string client; string program; string host; FuncStats *funcstats; string args; int refcount; PidFunc *nextpidfunc; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 6458 | Shawn Hladky |
Fixes. No idea how this ever compiled before :-) |
||
#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/pidfunc.h | |||||
#1 | 1610 | Michael Shields |
Adding p4d log analyzer concocted by myself. Compiles and executes on Red Hat 6.0, 7.0, and probably a few other operating systems with perhaps a little help. Still needs comments. |