android / renderscript-intrinsics-replacement-toolkit
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 205 units with 5,049 lines of code in units (28.6% of code).
    • 2 very long units (491 lines of code)
    • 12 long units (808 lines of code)
    • 75 medium size units (2,580 lines of code)
    • 52 small units (803 lines of code)
    • 64 very small units (367 lines of code)
9% | 16% | 51% | 15% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp14% | 21% | 42% | 15% | 5%
kt0% | 4% | 71% | 16% | 7%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
renderscript-toolkit/src/main/cpp14% | 21% | 42% | 15% | 7%
test-app/src/main/java/com/google/android/renderscript_test0% | 6% | 71% | 14% | 7%
renderscript-toolkit/src/main/java/com/google/android/renderscript0% | 0% | 69% | 22% | 7%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void BlendTask::blend()
in renderscript-toolkit/src/main/cpp/Blend.cpp
257 64 4
bool ColorMatrixTask::build()
in renderscript-toolkit/src/main/cpp/ColorMatrix.cpp
234 65 1
void ColorMatrixTask::preLaunch()
in renderscript-toolkit/src/main/cpp/ColorMatrix.cpp
92 20 4
static void One()
in renderscript-toolkit/src/main/cpp/ColorMatrix.cpp
90 23 8
fun intrinsicColorMatrix()
in test-app/src/main/java/com/google/android/renderscript_test/IntrinsicColorMatrix.kt
74 4 10
void Lut3dTask::kernel()
in renderscript-toolkit/src/main/cpp/Lut3d.cpp
70 5 3
Key_t ColorMatrixTask::computeKey()
in renderscript-toolkit/src/main/cpp/ColorMatrix.cpp
67 31 2
void rsdIntrinsicBlendSrcAtop_K()
in renderscript-toolkit/src/main/cpp/x86.cpp
62 2 3
void rsdIntrinsicBlendDstAtop_K()
in renderscript-toolkit/src/main/cpp/x86.cpp
62 2 3
void ResizeTask::kernelU4()
in renderscript-toolkit/src/main/cpp/Resize.cpp
59 5 4
void ResizeTask::kernelU2()
in renderscript-toolkit/src/main/cpp/Resize.cpp
59 5 4
void ResizeTask::kernelU1()
in renderscript-toolkit/src/main/cpp/Resize.cpp
59 5 4
void BlurTask::kernelU4()
in renderscript-toolkit/src/main/cpp/Blur.cpp
58 14 5
void BlurTask::kernelU1()
in renderscript-toolkit/src/main/cpp/Blur.cpp
56 15 4
fun intrinsicColorMatrix()
in test-app/src/main/java/com/google/android/renderscript_test/IntrinsicColorMatrix.kt
50 4 6
fun intrinsicLut3d()
in test-app/src/main/java/com/google/android/renderscript_test/IntrinsicLut3d.kt
49 2 7
static void OneVFU1()
in renderscript-toolkit/src/main/cpp/Blur.cpp
49 9 7
void rsdIntrinsicYuv2_K()
in renderscript-toolkit/src/main/cpp/x86.cpp
49 2 6
fun intrinsicHistogramDot()
in test-app/src/main/java/com/google/android/renderscript_test/IntrinsicHistogram.kt
48 6 7
void rsdIntrinsicYuv_K()
in renderscript-toolkit/src/main/cpp/x86.cpp
48 2 5