ProfileReport
Models & Types · AiDotNet.Diagnostics
A comprehensive profiling report containing all collected metrics.
Properties
| Property | Summary |
|---|---|
DateTime StartTime { get; } |
Gets the start time of the profiling session. |
IReadOnlyDictionary<string, ProfilerStats> Stats { get; } |
Gets a dictionary of operation name to statistics. |
IReadOnlyDictionary<string, string> Tags { get; } |
Gets custom tags associated with this report. |
IReadOnlyList<IProfilerEntry> Entries { get; } |
Gets the profiled entries. |
TimeSpan TotalRuntime { get; } |
Gets the total runtime of the profiling session. |
int TotalOperations { get; } |
Gets the total number of operations tracked. |
Methods
| Method | Summary |
|---|---|
Dictionary<string, object> ToDictionary() |
Exports the report to a dictionary for serialization. |
IReadOnlyList<ProfilerStats> GetAllStats() |
Gets statistics for all operations, sorted by total time descending. |
IReadOnlyList<ProfilerStats> GetHotspots(int count) |
Gets the top N operations ordered by total time (hotspots). |
IReadOnlyList<ProfilerStats> GetSlowOperations(double p95ThresholdMs) |
Gets operations that exceed the specified P95 threshold. |
IReadOnlyList<ProfilerStats> GetTopOperations(int count) |
Gets the top N operations by total time. |
ProfileComparison CompareTo(ProfileReport baseline, double thresholdPercent) |
Compares this report to a baseline and identifies regressions. |
ProfilerStats GetStats(string name) |
Gets statistics for a specific operation. |
string ToCsv() |
Exports the report to CSV format. |
string ToJson() |
Exports the report to JSON format. |
string ToMarkdown() |
Exports the report to Markdown format. |
string ToString() |