GraphMetricSet

data class GraphMetricSet(val modules: Map<String, ModuleGraphMetrics>, val project: ProjectGraphMetrics)(source)

The complete metric set for a graph: per-module and whole-project, computed together.

Parameters

modules

Per-module metrics, keyed by path.

project

Whole-graph metrics.

Constructors

Link copied to clipboard
constructor(modules: Map<String, ModuleGraphMetrics>, project: ProjectGraphMetrics)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Metrics for one module, or null when it is not in the graph.

Link copied to clipboard
fun percentileOf(path: String, selector: (ModuleGraphMetrics) -> Double): Double

The percentile rank of path for a metric, in [0, 100] - the share of modules scoring at or below it. Percentiles travel across projects in a way absolute thresholds do not: "99th percentile fan-in for this project" means something on a 20-module build and a 900-module one.