# Global Metrics

path: .metrics.nargs.sum
old: 2.0
new: 0.0
path: .metrics.nargs.average
old: 2.0
new: 0.0
path: .metrics.nexits.sum
old: 2.0
new: 1.0
path: .metrics.nexits.average
old: 2.0
new: 1.0
path: .metrics.cyclomatic.average
old: 1.5
new: 1.0
path: .metrics.cognitive.average
old: 1.0
new: 0.0
path: .metrics.cognitive.sum
old: 1.0
new: 0.0
path: .metrics.mi.mi_original
old: 115.50410415001728
new: 84.58181160463317
path: .metrics.mi.mi_visual_studio
old: 67.5462597368522
new: 49.4630477220077
path: .metrics.mi.mi_sei
old: 91.24180584575284
new: 87.48018850485117
path: .metrics.loc.sloc
old: 7.0
new: 42.0
path: .metrics.loc.blank
old: 2.0
new: 9.0
path: .metrics.loc.cloc
old: 0.0
new: 16.0
path: .metrics.loc.ploc
old: 5.0
new: 17.0
path: .metrics.loc.lloc
old: 3.0
new: 1.0
path: .metrics.halstead.N2
old: 7.0
new: 15.0
path: .metrics.halstead.effort
old: 513.3333333333333
new: 665.2345774134926
path: .metrics.halstead.bugs
old: 0.02137035431384471
new: 0.0254016516024397
path: .metrics.halstead.n1
old: 10.0
new: 7.0
path: .metrics.halstead.vocabulary
old: 16.0
new: 17.0
path: .metrics.halstead.N1
old: 15.0
new: 16.0
path: .metrics.halstead.length
old: 22.0
new: 31.0
path: .metrics.halstead.time
old: 28.518518518518515
new: 36.95747652297181
path: .metrics.halstead.difficulty
old: 5.833333333333333
new: 5.25
path: .metrics.halstead.estimated_program_length
old: 48.72905595320056
new: 52.87076540327685
path: .metrics.halstead.volume
old: 88.0
new: 126.71134807876052
path: .metrics.halstead.n2
old: 6.0
new: 10.0
path: .metrics.halstead.level
old: 0.17142857142857143
new: 0.1904761904761905
path: .metrics.halstead.purity_ratio
old: 2.2149570887818437
new: 1.7055085613960277

# Spaces Data

## Minimal test - lines (29, 38)

path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[0].metrics.halstead.difficulty
old: 5.833333333333333
new: 4.9
path: .spaces[0].metrics.halstead.estimated_program_length
old: 48.72905595320056
new: 31.26112492884004
path: .spaces[0].metrics.halstead.length
old: 22.0
new: 19.0
path: .spaces[0].metrics.halstead.n1
old: 10.0
new: 7.0
path: .spaces[0].metrics.halstead.time
old: 28.518518518518515
new: 18.542222712063317
path: .spaces[0].metrics.halstead.vocabulary
old: 16.0
new: 12.0
path: .spaces[0].metrics.halstead.level
old: 0.17142857142857143
new: 0.2040816326530612
path: .spaces[0].metrics.halstead.bugs
old: 0.02137035431384471
new: 0.01603866725509619
path: .spaces[0].metrics.halstead.volume
old: 88.0
new: 68.11428751370197
path: .spaces[0].metrics.halstead.effort
old: 513.3333333333333
new: 333.7600088171397
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.2149570887818437
new: 1.6453223646757915
path: .spaces[0].metrics.halstead.N1
old: 15.0
new: 12.0
path: .spaces[0].metrics.halstead.n2
old: 6.0
new: 5.0
path: .spaces[0].metrics.cognitive.average
old: 1.0
new: 0.0
path: .spaces[0].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.mi.mi_sei
old: 99.33572044591077
new: 116.99285057920036
path: .spaces[0].metrics.mi.mi_original
old: 121.18495438328092
new: 111.2879491293066
path: .spaces[0].metrics.mi.mi_visual_studio
old: 70.86839437618767
new: 65.08067200544245
path: .spaces[0].metrics.nexits.sum
old: 2.0
new: 1.0
path: .spaces[0].metrics.nexits.average
old: 2.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: 2.0
new: 0.0
path: .spaces[0].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 5.0
new: 10.0
path: .spaces[0].metrics.loc.lloc
old: 3.0
new: 1.0
path: .spaces[0].metrics.loc.blank
old: 1.0
new: 2.0
path: .spaces[0].metrics.loc.ploc
old: 4.0
new: 6.0
path: .spaces[0].metrics.loc.cloc
old: 0.0
new: 2.0

### Code

    namespace profiler_markers_detail {

    // Get the core buffer from the profiler, and cache it in a
    // non-templated-function static reference.
    inline mozilla::ProfileChunkedBuffer& CachedCoreBuffer() {
      static mozilla::ProfileChunkedBuffer& coreBuffer = profiler_get_core_buffer();
      return coreBuffer;
    }

    }  // namespace profiler_markers_detail