# Global Metrics

path: .metrics.cognitive.sum
old: 36.0
new: 46.0
path: .metrics.cognitive.average
old: 7.2
new: 2.3
path: .metrics.mi.mi_sei
old: 20.02092034606599
new: -35.23028555470867
path: .metrics.mi.mi_visual_studio
old: 26.032448782986133
new: 3.6072003404372217
path: .metrics.mi.mi_original
old: 44.51548741890629
new: 6.168312582147649
path: .metrics.halstead.vocabulary
old: 63.0
new: 305.0
path: .metrics.halstead.n1
old: 28.0
new: 35.0
path: .metrics.halstead.n2
old: 35.0
new: 270.0
path: .metrics.halstead.purity_ratio
old: 0.7123148376659562
new: 1.5159056626825935
path: .metrics.halstead.N2
old: 168.0
new: 617.0
path: .metrics.halstead.length
old: 441.0
new: 1557.0
path: .metrics.halstead.difficulty
old: 67.2
new: 39.99074074074074
path: .metrics.halstead.effort
old: 177137.88598890477
new: 513857.0272063503
path: .metrics.halstead.estimated_program_length
old: 314.1308434106867
new: 2360.2651167967983
path: .metrics.halstead.N1
old: 273.0
new: 940.0
path: .metrics.halstead.level
old: 0.01488095238095238
new: 0.025005788376939102
path: .metrics.halstead.bugs
old: 1.051363874226524
new: 2.138488628992333
path: .metrics.halstead.time
old: 9840.993666050264
new: 28547.61262257502
path: .metrics.halstead.volume
old: 2635.9804462634634
new: 12849.400078325038
path: .metrics.loc.ploc
old: 99.0
new: 371.0
path: .metrics.loc.cloc
old: 20.0
new: 61.0
path: .metrics.loc.lloc
old: 41.0
new: 148.0
path: .metrics.loc.sloc
old: 130.0
new: 522.0
path: .metrics.loc.blank
old: 11.0
new: 90.0
path: .metrics.cyclomatic.average
old: 3.625
new: 3.647058823529412
path: .metrics.cyclomatic.sum
old: 29.0
new: 62.0
path: .metrics.nom.total
old: 5.0
new: 20.0
path: .metrics.nom.functions
old: 5.0
new: 13.0
path: .metrics.nom.closures
old: 0.0
new: 7.0
path: .metrics.nexits.sum
old: 5.0
new: 21.0
path: .metrics.nexits.average
old: 1.0
new: 1.05
path: .metrics.nargs.sum
old: 6.0
new: 12.0
path: .metrics.nargs.average
old: 1.2
new: 0.6

# Spaces Data

## Minimal test - lines (50, 64)

path: .spaces[0].metrics.nargs.average
old: 1.2
new: null
path: .spaces[0].metrics.nargs.sum
old: 6.0
new: 0.0
path: .spaces[0].metrics.halstead.N1
old: 273.0
new: 13.0
path: .spaces[0].metrics.halstead.n1
old: 28.0
new: 7.0
path: .spaces[0].metrics.halstead.n2
old: 33.0
new: 10.0
path: .spaces[0].metrics.halstead.vocabulary
old: 61.0
new: 17.0
path: .spaces[0].metrics.halstead.length
old: 439.0
new: 23.0
path: .spaces[0].metrics.halstead.volume
old: 2603.593691190107
new: 94.0116453487578
path: .spaces[0].metrics.halstead.bugs
old: 1.075826757149442
new: 0.015887121267755194
path: .spaces[0].metrics.halstead.time
old: 10186.450737922238
new: 18.28004215114735
path: .spaces[0].metrics.halstead.level
old: 0.014199655765920829
new: 0.2857142857142857
path: .spaces[0].metrics.halstead.difficulty
old: 70.42424242424242
new: 3.5
path: .spaces[0].metrics.halstead.estimated_program_length
old: 301.07094375644186
new: 52.87076540327685
path: .spaces[0].metrics.halstead.effort
old: 183356.11328260027
new: 329.04075872065226
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.68581080582333
new: 2.2987289305772545
path: .spaces[0].metrics.halstead.N2
old: 166.0
new: 10.0
path: .spaces[0].metrics.loc.blank
old: 8.0
new: 2.0
path: .spaces[0].metrics.loc.lloc
old: 41.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 95.0
new: 13.0
path: .spaces[0].metrics.loc.sloc
old: 117.0
new: 15.0
path: .spaces[0].metrics.loc.cloc
old: 14.0
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 5.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 5.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 7.2
new: null
path: .spaces[0].metrics.cognitive.sum
old: 36.0
new: 0.0
path: .spaces[0].metrics.cyclomatic.average
old: 4.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.sum
old: 28.0
new: 2.0
path: .spaces[0].metrics.mi.mi_original
old: 46.51661287163421
new: 103.04380970345908
path: .spaces[0].metrics.mi.mi_visual_studio
old: 27.202697585750997
new: 60.25953783828017
path: .spaces[0].metrics.mi.mi_sei
old: 19.78977056309896
new: 73.16358098028269
path: .spaces[0].metrics.nexits.average
old: 1.0
new: null
path: .spaces[0].metrics.nexits.sum
old: 5.0
new: 0.0

### Code

    namespace {

    enum class PrevValue : uint32_t {
    #ifdef XP_WIN
      LOW_MEMORY_EVENTS_VIRTUAL,
      LOW_MEMORY_EVENTS_COMMIT_SPACE,
      LOW_MEMORY_EVENTS_PHYSICAL,
    #endif
    #if defined(XP_LINUX) && !defined(ANDROID)
      PAGE_FAULTS_HARD,
    #endif
      SIZE_,
    };

    }  // anonymous namespace