# Global Metrics

path: .metrics.halstead.N1
old: 435.0
new: 32.0
path: .metrics.halstead.volume
old: 4919.181139221718
new: 269.8789827584685
path: .metrics.halstead.vocabulary
old: 117.0
new: 30.0
path: .metrics.halstead.difficulty
old: 46.30113636363637
new: 8.794117647058824
path: .metrics.halstead.estimated_program_length
old: 709.3114312987818
new: 117.59258463708996
path: .metrics.halstead.level
old: 0.021597742054239782
new: 0.1137123745819398
path: .metrics.halstead.time
old: 12653.53759580738
new: 131.85264026925176
path: .metrics.halstead.n2
old: 88.0
new: 17.0
path: .metrics.halstead.effort
old: 227763.67672453285
new: 2373.347524846532
path: .metrics.halstead.n1
old: 29.0
new: 13.0
path: .metrics.halstead.N2
old: 281.0
new: 23.0
path: .metrics.halstead.bugs
old: 1.2431829785344055
new: 0.05930886811946843
path: .metrics.halstead.purity_ratio
old: 0.9906584236016506
new: 2.1380469934016357
path: .metrics.halstead.length
old: 716.0
new: 55.0
path: .metrics.nargs.sum
old: 13.0
new: 2.0
path: .metrics.nexits.average
old: 0.7692307692307693
new: 0.0
path: .metrics.nexits.sum
old: 10.0
new: 0.0
path: .metrics.cyclomatic.average
old: 2.7857142857142856
new: 1.0
path: .metrics.cyclomatic.sum
old: 39.0
new: 6.0
path: .metrics.loc.cloc
old: 8.0
new: 7.0
path: .metrics.loc.ploc
old: 162.0
new: 19.0
path: .metrics.loc.sloc
old: 188.0
new: 31.0
path: .metrics.loc.lloc
old: 76.0
new: 2.0
path: .metrics.loc.blank
old: 18.0
new: 5.0
path: .metrics.nom.functions
old: 13.0
new: 2.0
path: .metrics.nom.total
old: 13.0
new: 2.0
path: .metrics.mi.mi_visual_studio
old: 19.29530639033138
new: 49.63739434237376
path: .metrics.mi.mi_original
old: 32.99497392746666
new: 84.87994432545912
path: .metrics.mi.mi_sei
old: -8.420075554991229
new: 80.93840242187721
path: .metrics.cognitive.average
old: 2.0
new: 0.0
path: .metrics.cognitive.sum
old: 26.0
new: 0.0

# Spaces Data

## Minimal test - lines (15, 29)

path: .spaces[0].metrics.loc.sloc
old: 8.0
new: 15.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 2.0
path: .spaces[0].metrics.loc.cloc
old: 0.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 3.0
new: 2.0
path: .spaces[0].metrics.loc.ploc
old: 8.0
new: 12.0
path: .spaces[0].metrics.cyclomatic.sum
old: 3.0
new: 5.0
path: .spaces[0].metrics.cyclomatic.average
old: 3.0
new: 1.0
path: .spaces[0].metrics.halstead.N1
old: 34.0
new: 32.0
path: .spaces[0].metrics.halstead.level
old: 0.07179487179487179
new: 0.10859728506787328
path: .spaces[0].metrics.halstead.bugs
old: 0.08483098380374761
new: 0.05458198528633295
path: .spaces[0].metrics.halstead.volume
old: 291.4788597076543
new: 227.5489532989615
path: .spaces[0].metrics.halstead.estimated_program_length
old: 111.90632784293425
new: 91.12526634448808
path: .spaces[0].metrics.halstead.n1
old: 15.0
new: 13.0
path: .spaces[0].metrics.halstead.effort
old: 4059.8841173566134
new: 2095.346611627938
path: .spaces[0].metrics.halstead.time
old: 225.54911763092295
new: 116.40814509044095
path: .spaces[0].metrics.halstead.vocabulary
old: 29.0
new: 25.0
path: .spaces[0].metrics.halstead.difficulty
old: 13.928571428571429
new: 9.208333333333334
path: .spaces[0].metrics.halstead.N2
old: 26.0
new: 17.0
path: .spaces[0].metrics.halstead.n2
old: 14.0
new: 12.0
path: .spaces[0].metrics.halstead.length
old: 60.0
new: 49.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.865105464048904
new: 1.8596993131528177
path: .spaces[0].metrics.nom.total
old: 1.0
new: 2.0
path: .spaces[0].metrics.nom.functions
old: 1.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 2.0
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 2.0
new: 0.0
path: .spaces[0].metrics.mi.mi_sei
old: 79.13631330349037
new: 85.31311713934416
path: .spaces[0].metrics.mi.mi_original
old: 107.11321612505856
new: 97.7572866903316
path: .spaces[0].metrics.mi.mi_visual_studio
old: 62.639307675472836
new: 57.168003912474624
path: .spaces[0].metrics.nargs.average
old: 5.0
new: 1.0
path: .spaces[0].metrics.nargs.sum
old: 5.0
new: 2.0
path: .spaces[0].metrics.cognitive.average
old: 2.0
new: 0.0
path: .spaces[0].metrics.cognitive.sum
old: 2.0
new: 0.0

### Code

    namespace mozilla {
    namespace widget {

    class Telemetry final : public java::TelemetryUtils::Natives {
      Telemetry() = delete;

     public:
      static void AddHistogram(jni::String::Param aName, int32_t aValue) {
        MOZ_ASSERT(aName);
        mozilla::Telemetry::Accumulate(aName->ToCString().get(), aValue);
      }
    };

    }  // namespace widget
    }  // namespace mozilla