
Add unit resource sizes to log-derived unit data
add_unit_sizes.RdJoins unit resource sizes from compute_sizes() to log-derived unit data.
Unit names are matched both with and without a trailing .xml extension.
The function adds byte and MiB sizes and, when load-time columns are present,
observed load-time-per-MiB indicators. These indicators are descriptive
load-time ratios and should not be interpreted as download speed.
Usage
add_unit_sizes(
unit_data,
sizes,
unit_col = NULL,
size_name_col = "name",
size_col = "total_size"
)Arguments
- unit_data
Tibble. Unit-level or unit-playback data, for example returned by
estimate_unit_times()or state-specific log summaries.- sizes
Tibble. Output of
compute_sizes().- unit_col
Optional name of the unit identifier column in
unit_data. Defaults tounit_keywhen available, otherwiseunit_alias.- size_name_col
Name column in
sizes. Defaults toname, matchingcompute_sizes()output.- size_col
Size column in
sizes. Defaults tototal_size, matchingcompute_sizes()output.