A collection of scripts useful for supporting P4 Server administration
These scripts are curated by Perforce Support.
p4diagp4diag aggregates common P4 Server log analysis workflows in one script. It uses log2sql to build a SQLite database from trace data, runs canned and summary SQL queries, writes grep-based log statistics, victim/culprit write-wait analysis, and command-activity plots into text and HTML under .p4diagnostics/ for viewing in a browser. Interactive mode provides a TTY menu and starts a small local web server for output files.
See p4diag -h for requirements and usage.
See: P4 Server Log Analysis for details on using p4diag.
IntegHistory.pyIntegHistoryRebuild.pyThese companion scripts are for extracting detailed revision history from a tiny slice of a P4 Server and (IntegHistory.py) and reconstructing that integration history in a new test server instance (IntegHistoryRebuild.py).
See: Integration/Merge First Response for details on using IntegHistory.py.