dart-lang / ffi
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 22 units with 202 lines of code in units (30.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (23 lines of code)
    • 6 small units (77 lines of code)
    • 15 very small units (102 lines of code)
0% | 0% | 11% | 38% | 50%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 0% | 11% | 38% | 50%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 0% | 12% | 34% | 53%
example0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
R withZoneArena()
in lib/src/arena.dart
23 3 1
R using()
in lib/src/arena.dart
17 3 1
Pointer allocate()
in lib/src/allocation.dart
13 3 2
void releaseAll()
in lib/src/arena.dart
12 4 1
Pointer allocate()
in lib/src/allocation.dart
12 3 2
12 3 1
void main()
in example/main.dart
11 1 0
String toDartString()
in lib/src/utf8.dart
10 2 1
String toDartString()
in lib/src/utf16.dart
10 2 1
void free()
in lib/src/allocation.dart
9 3 1
void free()
in lib/src/allocation.dart
9 3 1
Pointer toNativeUtf8()
in lib/src/utf8.dart
8 1 1
Pointer toNativeUtf16()
in lib/src/utf16.dart
8 1 1
static int _length()
in lib/src/utf8.dart
7 2 1
static int _length()
in lib/src/utf16.dart
7 2 1
Pointer allocate()
in lib/src/arena.dart
6 1 2
T using()
in lib/src/arena.dart
6 1 2
void _ensureInUse()
in lib/src/arena.dart
6 2 0
void _ensureNotNullptr()
in lib/src/utf8.dart
6 2 1
void _ensureNotNullptr()
in lib/src/utf16.dart
6 2 1