#ifndef NONAMESPACE #include <iostream> using namespace std; #else #include <iostream.h> #endif void PrintUsage() { cout << "p4loga analyzes a p4d server log file to help determine\n"; cout << "how the p4d server is performing. p4loga is only useful\n"; cout << "when analyzing a p4d server log file when the p4d server\n"; cout << "has been started with either the -vserver=2 or -vserver=3\n"; cout << "option.\n"; cout << "\n"; cout << "Usage: p4loga [options] [file]\n"; cout << "\n"; cout << "where options are:\n"; cout << "\n"; cout << " --detail Print a line for each completed function.\n"; cout << " By default, detail lines are not printed.\n"; cout << "\n"; cout << " --csv Prints a line containing comma-seperated variables\n"; cout << " for each completed function.\n"; cout << " No header or summary information is printed\n"; cout << " This output can be imported to a spreadsheet\n"; cout << " or database for further analysis.\n"; cout << " Can not be combined with '--detail'.\n"; cout << "\n"; cout << " --begin=time Consider only log file records with\n"; cout << " timestamps greater than or equal to\n"; cout << " the timestamp provided. For example,\n"; cout << " --begin=\"2001/10/01 00:00:00\" will\n"; cout << " consider all log records with timestamps\n"; cout << " in October of 2001 and later. By default,\n"; cout << " all log records with timestamps greater\n"; cout << " than or equal to 1990/01/01 00:00:00\n"; cout << " will be considered.\n"; cout << "\n"; cout << " --end=time Consider only log file records with\n"; cout << " timestamps less than or equal to\n"; cout << " the timestamp provided. For example,\n"; cout << " --end=\"2001/10/31 23:59:59\" will\n"; cout << " consider all log records with timestamps\n"; cout << " in October of 2001 and earlier. By default,\n"; cout << " all log records with timestamps less\n"; cout << " than or equal to 2029/12/31 23:59:59\n"; cout << " will be considered.\n"; cout << "\n"; cout << "and file is the -vserver=2 or -vserver=3 p4d server log.\n"; cout << "The default log file name is \"log\".\n"; cout << "\n"; }
# | 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/usage.cc | |||||
#2 | 1722 | Michael Shields |
p4loga builds for freebsd4 (play), hpux11 (hell), linux24x86 (duey), and solaris26 (shucks). A bit of porting was required for the hpux11 build (aCC as configured on hell isn't quite up to speed with respect to namespaces). |
||
#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. |