Global Metrics
path: .metrics.nargs.average
old: 0.3333333333333333
new: 1.6
path: .metrics.nargs.sum
old: 1.0
new: 16.0
path: .metrics.nom.functions
old: 3.0
new: 10.0
path: .metrics.nom.total
old: 3.0
new: 10.0
path: .metrics.nexits.average
old: 0.6666666666666666
new: 0.8
path: .metrics.nexits.sum
old: 2.0
new: 8.0
path: .metrics.halstead.difficulty
old: 11.045454545454543
new: 40.9375
path: .metrics.halstead.N1
old: 111.0
new: 163.0
path: .metrics.halstead.bugs
old: 0.1842786730703111
new: 0.5311818235889583
path: .metrics.halstead.effort
old: 12998.537656299288
new: 63613.11908039395
path: .metrics.halstead.n2
old: 55.0
new: 24.0
path: .metrics.halstead.purity_ratio
old: 1.9613444957186672
new: 0.5736138059572636
path: .metrics.halstead.N2
old: 81.0
new: 131.0
path: .metrics.halstead.length
old: 192.0
new: 294.0
path: .metrics.halstead.time
old: 722.140980905516
new: 3534.0621711329973
path: .metrics.halstead.vocabulary
old: 70.0
new: 39.0
path: .metrics.halstead.volume
old: 1176.8223392534337
new: 1553.908252345501
path: .metrics.halstead.estimated_program_length
old: 376.5781431779841
new: 168.64245895143551
path: .metrics.halstead.level
old: 0.09053497942386832
new: 0.024427480916030538
path: .metrics.loc.cloc
old: 9.0
new: 10.0
path: .metrics.loc.sloc
old: 62.0
new: 93.0
path: .metrics.loc.ploc
old: 41.0
new: 64.0
path: .metrics.loc.blank
old: 12.0
new: 19.0
path: .metrics.loc.lloc
old: 2.0
new: 10.0
path: .metrics.cognitive.average
old: 0.0
new: 0.1
path: .metrics.cognitive.sum
old: 0.0
new: 1.0
path: .metrics.cyclomatic.sum
old: 10.0
new: 16.0
path: .metrics.cyclomatic.average
old: 1.4285714285714286
new: 1.2307692307692308
path: .metrics.mi.mi_original
old: 65.07344257105198
new: 55.679540065465375
path: .metrics.mi.mi_sei
old: 47.02663622302501
new: 30.57842341623496
path: .metrics.mi.mi_visual_studio
old: 38.05464477839297
new: 32.56113454120782
Spaces Data
Minimal test - lines (18, 31)
path: .spaces[0].metrics.loc.blank
old: 9.0
new: 2.0
path: .spaces[0].metrics.loc.ploc
old: 35.0
new: 12.0
path: .spaces[0].metrics.loc.sloc
old: 46.0
new: 14.0
path: .spaces[0].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 2.0
new: 1.0
path: .spaces[0].metrics.halstead.N1
old: 101.0
new: 28.0
path: .spaces[0].metrics.halstead.n2
old: 53.0
new: 14.0
path: .spaces[0].metrics.halstead.effort
old: 10519.824936417332
new: 2514.0637578171786
path: .spaces[0].metrics.halstead.time
old: 584.4347186898517
new: 139.67020876762103
path: .spaces[0].metrics.halstead.vocabulary
old: 68.0
new: 26.0
path: .spaces[0].metrics.halstead.volume
old: 1047.0436086950583
new: 244.4228653433368
path: .spaces[0].metrics.halstead.n1
old: 15.0
new: 12.0
path: .spaces[0].metrics.halstead.N2
old: 71.0
new: 24.0
path: .spaces[0].metrics.halstead.difficulty
old: 10.047169811320757
new: 10.285714285714286
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.1057159478254492
new: 1.852356133028083
path: .spaces[0].metrics.halstead.estimated_program_length
old: 362.1831430259773
new: 96.32251891746031
path: .spaces[0].metrics.halstead.length
old: 172.0
new: 52.0
path: .spaces[0].metrics.halstead.bugs
old: 0.16003602424422028
new: 0.06163058217903626
path: .spaces[0].metrics.halstead.level
old: 0.09953051643192488
new: 0.0972222222222222
path: .spaces[0].metrics.cyclomatic.sum
old: 8.0
new: 4.0
path: .spaces[0].metrics.nom.functions
old: 3.0
new: 2.0
path: .spaces[0].metrics.nom.total
old: 3.0
new: 2.0
path: .spaces[0].metrics.nargs.average
old: 0.3333333333333333
new: 1.5
path: .spaces[0].metrics.nargs.sum
old: 1.0
new: 3.0
path: .spaces[0].metrics.nexits.average
old: 0.6666666666666666
new: 0.5
path: .spaces[0].metrics.nexits.sum
old: 2.0
new: 1.0
path: .spaces[0].metrics.mi.mi_original
old: 70.97663489917325
new: 98.73299240437558
path: .spaces[0].metrics.mi.mi_sei
old: 43.38337013038919
new: 67.14802595952543
path: .spaces[0].metrics.mi.mi_visual_studio
old: 41.50680403460424
new: 57.73859204934245
Code
class MOZ_STACK_CLASS nsQueryObject final : public nsCOMPtr_helper {
public:
explicit nsQueryObject(T* aRawPtr) : mRawPtr(aRawPtr) {}
virtual nsresult NS_FASTCALL operator()(const nsIID& aIID,
void** aResult) const override {
nsresult status = mRawPtr ? mRawPtr->QueryInterface(aIID, aResult)
: NS_ERROR_NULL_POINTER;
return status;
}
private:
T* MOZ_NON_OWNING_REF mRawPtr;
};
Minimal test - lines (20, 20)
path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.6666666666666666
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.blank
old: 10.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 33.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 44.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 0.3333333333333333
new: 1.0
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 42.10869162156371
new: 89.52267462886361
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 72.00586267287395
new: 153.0837736153568
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 40.46600238107691
new: 145.25416890283572
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 1.4
new: 1.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 7.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nom.functions
old: 3.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nom.total
old: 3.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 1031.235162377821
new: 30.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.1589356029102911
new: 0.005928155507483437
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 355.0262242774645
new: 16.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 70.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 15.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 52.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 67.0
new: 8.0
path: .spaces[0].spaces[0].metrics.halstead.length
old: 170.0
new: 10.0
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 10.096153846153848
new: 2.5
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 10411.508850929928
new: 75.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 100.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.09904761904761904
new: 0.4
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 2.0883895545733204
new: 1.6
path: .spaces[0].spaces[0].metrics.halstead.time
old: 578.417158384996
new: 4.166666666666667
Code
explicit nsQueryObject(T* aRawPtr) : mRawPtr(aRawPtr) {}