Global Metrics

path: .metrics.cyclomatic.sum
old: 12.0
new: 8.0

path: .metrics.cyclomatic.average
old: 1.0
new: 1.3333333333333333

path: .metrics.nom.functions
old: 8.0
new: 4.0

path: .metrics.nom.total
old: 8.0
new: 4.0

path: .metrics.cognitive.average
old: 0.0
new: 0.25

path: .metrics.cognitive.sum
old: 0.0
new: 1.0

path: .metrics.nargs.average
old: 0.625
new: 0.5

path: .metrics.nargs.sum
old: 5.0
new: 2.0

path: .metrics.loc.blank
old: 3.0
new: 7.0

path: .metrics.loc.sloc
old: 89.0
new: 41.0

path: .metrics.loc.ploc
old: 45.0
new: 24.0

path: .metrics.loc.cloc
old: 41.0
new: 10.0

path: .metrics.loc.lloc
old: 7.0
new: 4.0

path: .metrics.mi.mi_original
old: 61.32055204922116
new: 78.68961530781712

path: .metrics.mi.mi_sei
old: 57.39586857600092
new: 73.26899480574674

path: .metrics.mi.mi_visual_studio
old: 35.85997195860887
new: 46.017318893460306

path: .metrics.nexits.average
old: 0.875
new: 0.5

path: .metrics.nexits.sum
old: 7.0
new: 2.0

path: .metrics.halstead.level
old: 0.1234567901234568
new: 0.09743589743589744

path: .metrics.halstead.n1
old: 9.0
new: 13.0

path: .metrics.halstead.N2
old: 54.0
new: 30.0

path: .metrics.halstead.volume
old: 718.8147017652658
new: 340.0

path: .metrics.halstead.purity_ratio
old: 1.292176785891444
new: 1.894357927812681

path: .metrics.halstead.estimated_program_length
old: 175.7360428812364
new: 128.8163390912623

path: .metrics.halstead.vocabulary
old: 39.0
new: 32.0

path: .metrics.halstead.bugs
old: 0.10788143763113686
new: 0.07668646116230494

path: .metrics.halstead.N1
old: 82.0
new: 38.0

path: .metrics.halstead.n2
old: 30.0
new: 19.0

path: .metrics.halstead.time
old: 323.46661579436955
new: 193.859649122807

path: .metrics.halstead.length
old: 136.0
new: 68.0

path: .metrics.halstead.difficulty
old: 8.1
new: 10.263157894736842

path: .metrics.halstead.effort
old: 5822.399084298652
new: 3489.4736842105262

Spaces Data

Minimal test - lines (22, 22)

path: .spaces[0].spaces[0].metrics.nargs.sum
old: 5.0
new: 0.0

path: .spaces[0].spaces[0].metrics.nargs.average
old: 0.625
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.cloc
old: 31.0
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.sloc
old: 73.0
new: 1.0

path: .spaces[0].spaces[0].metrics.loc.lloc
old: 7.0
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.blank
old: 4.0
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.ploc
old: 38.0
new: 1.0

path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 38.234827661122125
new: 91.0600994256245

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 61.97244034830449
new: 149.04700897518126

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 65.38155530051883
new: 155.7127700178179

path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.875
new: 0.0

path: .spaces[0].spaces[0].metrics.nexits.sum
old: 7.0
new: 0.0

path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 10.0
new: 1.0

path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 8.48076923076923
new: 1.5

path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.10580404035476018
new: 0.003010517177243676

path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 35.0
new: 6.0

path: .spaces[0].spaces[0].metrics.halstead.N1
old: 81.0
new: 4.0

path: .spaces[0].spaces[0].metrics.halstead.volume
old: 666.8067922028456
new: 18.094737505048094

path: .spaces[0].spaces[0].metrics.halstead.N2
old: 49.0
new: 3.0

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 9.0
new: 3.0

path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 150.7407576846492
new: 9.509775004326936

path: .spaces[0].spaces[0].metrics.halstead.effort
old: 5655.034526181825
new: 27.14210625757214

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.1595442898819168
new: 1.3585392863324195

path: .spaces[0].spaces[0].metrics.halstead.time
old: 314.1685847878791
new: 1.5078947920873411

path: .spaces[0].spaces[0].metrics.halstead.n2
old: 26.0
new: 3.0

path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.1179138321995465
new: 0.6666666666666666

path: .spaces[0].spaces[0].metrics.halstead.length
old: 130.0
new: 7.0

path: .spaces[0].spaces[0].metrics.nom.total
old: 8.0
new: 1.0

path: .spaces[0].spaces[0].metrics.nom.functions
old: 8.0
new: 1.0

Code

  nsAutoXPTCStub() : mXPTCStub(nullptr) {}

Minimal test - lines (17, 39)

path: .spaces[0].metrics.nargs.sum
old: 5.0
new: 2.0

path: .spaces[0].metrics.nargs.average
old: 0.625
new: 0.5

path: .spaces[0].metrics.halstead.n2
old: 27.0
new: 16.0

path: .spaces[0].metrics.halstead.volume
old: 682.4301001903852
new: 306.05280269303705

path: .spaces[0].metrics.halstead.estimated_program_length
old: 156.91128757139447
new: 112.1057163358342

path: .spaces[0].metrics.halstead.n1
old: 9.0
new: 13.0

path: .spaces[0].metrics.halstead.N1
old: 82.0
new: 37.0

path: .spaces[0].metrics.halstead.N2
old: 50.0
new: 26.0

path: .spaces[0].metrics.halstead.length
old: 132.0
new: 63.0

path: .spaces[0].metrics.halstead.time
old: 315.93986119925245
new: 179.59348491362243

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1887218755408673
new: 1.779455814854511

path: .spaces[0].metrics.halstead.difficulty
old: 8.333333333333334
new: 10.5625

path: .spaces[0].metrics.halstead.effort
old: 5686.917501586544
new: 3232.682728445204

path: .spaces[0].metrics.halstead.vocabulary
old: 36.0
new: 29.0

path: .spaces[0].metrics.halstead.bugs
old: 0.10620134835893362
new: 0.07287649334849765

path: .spaces[0].metrics.halstead.level
old: 0.12
new: 0.09467455621301776

path: .spaces[0].metrics.mi.mi_sei
old: 61.000349808016445
new: 53.16858511033149

path: .spaces[0].metrics.mi.mi_visual_studio
old: 37.773836267401435
new: 51.948218683355904

path: .spaces[0].metrics.mi.mi_original
old: 64.59326001725645
new: 88.83145394853861

path: .spaces[0].metrics.cognitive.average
old: 0.0
new: 0.25

path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 1.0

path: .spaces[0].metrics.nexits.sum
old: 7.0
new: 2.0

path: .spaces[0].metrics.nexits.average
old: 0.875
new: 0.5

path: .spaces[0].metrics.loc.blank
old: 3.0
new: 4.0

path: .spaces[0].metrics.loc.ploc
old: 40.0
new: 19.0

path: .spaces[0].metrics.loc.cloc
old: 32.0
new: 0.0

path: .spaces[0].metrics.loc.lloc
old: 7.0
new: 4.0

path: .spaces[0].metrics.loc.sloc
old: 75.0
new: 23.0

path: .spaces[0].metrics.nom.functions
old: 8.0
new: 4.0

path: .spaces[0].metrics.nom.total
old: 8.0
new: 4.0

path: .spaces[0].metrics.cyclomatic.sum
old: 11.0
new: 7.0

path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 1.4

Code

class nsAutoXPTCStub : protected nsIXPTCProxy {
 public:
  nsISomeInterface* mXPTCStub;

 protected:
  nsAutoXPTCStub() : mXPTCStub(nullptr) {}

  nsresult InitStub(const nsIID& aIID) {
    return NS_GetXPTCallStub(aIID, this, &mXPTCStub);
  }

  ~nsAutoXPTCStub() {
    if (mXPTCStub) {
      NS_DestroyXPTCallStub(mXPTCStub);
    }
  }

  size_t SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const {
    return mXPTCStub
               ? NS_SizeOfIncludingThisXPTCallStub(mXPTCStub, aMallocSizeOf)
               : 0;
  }
};