stats
An aggregator for Pants stats, such as cache metrics.
Backend: pants.core
Config section: [stats]
Basic options
format
--stats-format=<StatsOutputFormat>PANTS_STATS_FORMATpants.toml
[stats]
format = <StatsOutputFormat>
one of:
default:
text, jsonlinesdefault:
textOutput format for reporting stats.
output_file
--stats-output-file=<path>PANTS_STATS_OUTPUT_FILEpants.toml
[stats]
output_file = <path>
default:
NoneOutput the stats to this file. If unspecified, outputs to stdout.
Advanced options
log
--[no-]stats-logPANTS_STATS_LOGpants.toml
[stats]
log = <bool>
default:
FalseAt the end of the Pants run, log all counter metrics and summaries of observation histograms, e.g. the number of cache hits and the time saved by caching.
For histogram summaries to work, you must add hdrhistogram to [GLOBAL].plugins.
memory_summary
--[no-]stats-memory-summaryPANTS_STATS_MEMORY_SUMMARYpants.toml
[stats]
memory_summary = <bool>
default:
FalseAt the end of the Pants run, report a summary of memory usage.
Keys are the total size in bytes, the count, and the name. Note that the total size is for all instances added together, so you can use total_size // count to get the average size.
Deprecated options
None
Related subsystems
None