Metalama.Extensions.Metrics
v2025.2.2-previewPre-release
.NETStandard2.0
A Metalama extension that exposes code metrics to the code model.
Published
Sep 19, 2025
1y ago
Total Downloads
87.0K
86,992
Install
dotnet add package Metalama.Extensions.Metrics --version 2025.2.2-preview
| Product | Versions |
|---|---|
| .NET Standard |
README
About
The Metalama.Extensions.Metrics package implements a few metrics that can be consumed from Metalama aspects and fabrics.
Principal Types
StatementNumber: counts the number of statements.SyntaxNodeNumber: counts the number of Roslyn syntax node.
To use a metric in an aspect, use for instance:
method.Metrics().Get<StatementNumber>().Value
Documentation
Changes from Previous Version
No structural changes between v2025.2.1-preview and v2025.2.2-preview.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.