# Global Metrics

path: .metrics.halstead.time
old: 110.5759589258381
new: 5451.086993809377
path: .metrics.halstead.estimated_program_length
old: 81.07329781366414
new: 646.9937635307236
path: .metrics.halstead.level
old: 0.1090909090909091
new: 0.03414634146341464
path: .metrics.halstead.purity_ratio
old: 1.6890270377846697
new: 1.3044229103442009
path: .metrics.halstead.vocabulary
old: 23.0
new: 108.0
path: .metrics.halstead.N2
old: 20.0
new: 205.0
path: .metrics.halstead.n1
old: 11.0
new: 24.0
path: .metrics.halstead.length
old: 48.0
new: 496.0
path: .metrics.halstead.n2
old: 12.0
new: 84.0
path: .metrics.halstead.bugs
old: 0.05274333149408208
new: 0.7091136151365052
path: .metrics.halstead.effort
old: 1990.3672606650855
new: 98119.5658885688
path: .metrics.halstead.difficulty
old: 9.166666666666666
new: 29.285714285714285
path: .metrics.halstead.volume
old: 217.13097389073664
new: 3350.4242010730804
path: .metrics.halstead.N1
old: 28.0
new: 291.0
path: .metrics.cognitive.average
old: null
new: 0.6923076923076923
path: .metrics.cognitive.sum
old: 0.0
new: 9.0
path: .metrics.cyclomatic.average
old: 1.0
new: 2.0
path: .metrics.cyclomatic.sum
old: 3.0
new: 30.0
path: .metrics.nexits.average
old: null
new: 1.0769230769230769
path: .metrics.nexits.sum
old: 0.0
new: 14.0
path: .metrics.nargs.average
old: null
new: 1.2307692307692308
path: .metrics.nargs.sum
old: 0.0
new: 16.0
path: .metrics.nom.total
old: 0.0
new: 13.0
path: .metrics.nom.functions
old: 0.0
new: 13.0
path: .metrics.mi.mi_sei
old: 86.30857385453007
new: 15.46215909816825
path: .metrics.mi.mi_visual_studio
old: 49.02603858402636
new: 23.38084110211514
path: .metrics.mi.mi_original
old: 83.83452597868506
new: 39.98123828461689
path: .metrics.loc.lloc
old: 0.0
new: 32.0
path: .metrics.loc.sloc
old: 37.0
new: 157.0
path: .metrics.loc.cloc
old: 14.0
new: 28.0
path: .metrics.loc.blank
old: 9.0
new: 25.0
path: .metrics.loc.ploc
old: 14.0
new: 104.0

# Spaces Data

## Minimal test - lines (23, 27)

path: .spaces[0].metrics.halstead.length
old: 1.0
new: 9.0
path: .spaces[0].metrics.halstead.N1
old: 0.0
new: 6.0
path: .spaces[0].metrics.halstead.volume
old: 0.0
new: 28.52932501298081
path: .spaces[0].metrics.halstead.level
old: null
new: 0.3333333333333333
path: .spaces[0].metrics.halstead.N2
old: 1.0
new: 3.0
path: .spaces[0].metrics.halstead.n2
old: 1.0
new: 3.0
path: .spaces[0].metrics.halstead.purity_ratio
old: null
new: 2.2516291673878226
path: .spaces[0].metrics.halstead.effort
old: 0.0
new: 85.58797503894243
path: .spaces[0].metrics.halstead.bugs
old: 0.0
new: 0.006473720020679235
path: .spaces[0].metrics.halstead.difficulty
old: 0.0
new: 3.0
path: .spaces[0].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[0].metrics.halstead.time
old: 0.0
new: 4.754887502163468
path: .spaces[0].metrics.halstead.estimated_program_length
old: null
new: 20.264662506490403
path: .spaces[0].metrics.halstead.vocabulary
old: 1.0
new: 9.0
path: .spaces[0].metrics.loc.ploc
old: 1.0
new: 3.0
path: .spaces[0].metrics.loc.sloc
old: 1.0
new: 5.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 2.0
path: .spaces[0].metrics.mi.mi_sei
old: null
new: 108.0160215765645
path: .spaces[0].metrics.mi.mi_original
old: null
new: 127.27225678687606
path: .spaces[0].metrics.mi.mi_visual_studio
old: null
new: 74.42822034320237

### Code

    namespace {

    static Atomic gEarliestUnprocessedVsync(0);

    }  // namespace

## Minimal test - lines (30, 37)

path: .spaces[1].metrics.cyclomatic.average
old: 1.0
new: 3.0
path: .spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[1].metrics.cognitive.average
old: null
new: 2.0
path: .spaces[1].metrics.cognitive.sum
old: 0.0
new: 2.0
path: .spaces[1].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[1].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[1].metrics.mi.mi_original
old: 100.88613297754272
new: 110.07216302469097
path: .spaces[1].metrics.mi.mi_visual_studio
old: 58.99773858335832
new: 64.36968597935143
path: .spaces[1].metrics.mi.mi_sei
old: 102.81037548410517
new: 83.4051713218438
path: .spaces[1].metrics.halstead.difficulty
old: 8.8
new: 7.0
path: .spaces[1].metrics.halstead.N1
old: 26.0
new: 23.0
path: .spaces[1].metrics.halstead.length
old: 42.0
new: 37.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 71.27302875388389
new: 76.10749561002054
path: .spaces[1].metrics.halstead.N2
old: 16.0
new: 14.0
path: .spaces[1].metrics.halstead.vocabulary
old: 21.0
new: 22.0
path: .spaces[1].metrics.halstead.time
old: 90.18891774772388
new: 64.16626606817
path: .spaces[1].metrics.halstead.volume
old: 184.4773317567079
new: 164.99896988958
path: .spaces[1].metrics.halstead.n2
old: 10.0
new: 11.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.6969768750924736
new: 2.0569593408113658
path: .spaces[1].metrics.halstead.level
old: 0.11363636363636365
new: 0.14285714285714285
path: .spaces[1].metrics.halstead.effort
old: 1623.40051945903
new: 1154.99278922706
path: .spaces[1].metrics.halstead.bugs
old: 0.04604288543337438
new: 0.03669427070256823
path: .spaces[1].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[1].metrics.nexits.average
old: null
new: 2.0
path: .spaces[1].metrics.loc.lloc
old: 0.0
new: 3.0
path: .spaces[1].metrics.loc.sloc
old: 14.0
new: 8.0
path: .spaces[1].metrics.loc.cloc
old: 3.0
new: 0.0
path: .spaces[1].metrics.loc.blank
old: 3.0
new: 0.0
path: .spaces[1].metrics.nargs.average
old: null
new: 2.0
path: .spaces[1].metrics.nargs.sum
old: 0.0
new: 2.0

### Code

    nsresult SchedulerGroup::UnlabeledDispatch(
        TaskCategory aCategory, already_AddRefed&& aRunnable) {
      if (NS_IsMainThread()) {
        return NS_DispatchToCurrentThread(std::move(aRunnable));
      } else {
        return NS_DispatchToMainThread(std::move(aRunnable));
      }
    }