LCOV - code coverage report

Current view
top level - src/stats - perf_counter_snapshot.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines66100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'perf_counter.dart';
2
3/// A snapshot of a [PerfCounter]'s values.
4class PerfCounterSnapshot {
5 /// Creates a new snapshop from a the specified [counter].
62 PerfCounterSnapshot(PerfCounter counter)
71 : name = counter.name,
81 maxTimeInMicroseconds = counter.maxTimeInMicroseconds,
91 totalTimeInMicroseconds = counter.totalTimeInMicroseconds,
101 totalCount = counter.totalCount,
112 totalErrors = counter.totalErrors;
12
13 /// The counter's name or label.
14 final String name;
15
16 /// Maximum elapsed time for a single call (in microseconds).
17 final int maxTimeInMicroseconds;
18
19 /// Total elapsed time (in microseconds).
20 final int totalTimeInMicroseconds;
21
22 /// Total number of calls.
23 final int totalCount;
24
25 /// Total number of errors.
26 final int totalErrors;
27}
Choose Features