Global Metrics
path: .metrics.nexits.sum
old: 2.0
new: 0.0
path: .metrics.nexits.average
old: 0.6666666666666666
new: null
path: .metrics.nom.total
old: 3.0
new: 0.0
path: .metrics.nom.functions
old: 3.0
new: 0.0
path: .metrics.loc.ploc
old: 21.0
new: 32.0
path: .metrics.loc.sloc
old: 29.0
new: 53.0
path: .metrics.loc.cloc
old: 2.0
new: 6.0
path: .metrics.loc.blank
old: 6.0
new: 15.0
path: .metrics.loc.lloc
old: 2.0
new: 0.0
path: .metrics.mi.mi_original
old: 84.74116957212465
new: 73.70921887544314
path: .metrics.mi.mi_sei
old: 66.84928730148823
new: 55.74079496935299
path: .metrics.mi.mi_visual_studio
old: 49.55623951586237
new: 43.10480635990827
path: .metrics.halstead.volume
old: 356.6165626622601
new: 519.2148238693592
path: .metrics.halstead.level
old: 0.07977207977207977
new: 0.15151515151515152
path: .metrics.halstead.time
old: 248.3579632826454
new: 190.37876875209835
path: .metrics.halstead.vocabulary
old: 27.0
new: 46.0
path: .metrics.halstead.N2
old: 27.0
new: 42.0
path: .metrics.halstead.bugs
old: 0.09045775569212758
new: 0.07576572055365852
path: .metrics.halstead.estimated_program_length
old: 101.40868524464064
new: 217.57865339808407
path: .metrics.halstead.length
old: 75.0
new: 94.0
path: .metrics.halstead.n1
old: 13.0
new: 11.0
path: .metrics.halstead.effort
old: 4470.4433390876175
new: 3426.81783753777
path: .metrics.halstead.difficulty
old: 12.535714285714286
new: 6.6
path: .metrics.halstead.purity_ratio
old: 1.3521158032618754
new: 2.314666525511533
path: .metrics.halstead.n2
old: 14.0
new: 35.0
path: .metrics.halstead.N1
old: 48.0
new: 52.0
path: .metrics.cognitive.average
old: 0.0
new: null
path: .metrics.nargs.average
old: 0.0
new: null
path: .metrics.cyclomatic.sum
old: 5.0
new: 2.0
Spaces Data
Minimal test - lines (26, 51)
path: .spaces[0].metrics.mi.mi_sei
old: 149.37000000000003
new: 48.9457374441169
path: .spaces[0].metrics.mi.mi_original
old: 155.93665033601718
new: 86.32785588559511
path: .spaces[0].metrics.mi.mi_visual_studio
old: 91.19102358831414
new: 50.48412624888603
path: .spaces[0].metrics.halstead.volume
old: 2.0
new: 440.8259111292611
path: .spaces[0].metrics.halstead.n1
old: 1.0
new: 11.0
path: .spaces[0].metrics.halstead.n2
old: 1.0
new: 27.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.0
new: 1.9813775043264752
path: .spaces[0].metrics.halstead.vocabulary
old: 2.0
new: 38.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 0.0
new: 166.4357103634239
path: .spaces[0].metrics.halstead.time
old: 0.05555555555555555
new: 164.6294297735821
path: .spaces[0].metrics.halstead.length
old: 2.0
new: 84.0
path: .spaces[0].metrics.halstead.difficulty
old: 0.5
new: 6.722222222222222
path: .spaces[0].metrics.halstead.level
old: 2.0
new: 0.1487603305785124
path: .spaces[0].metrics.halstead.bugs
old: 0.0003333333333333333
new: 0.06876995359702627
path: .spaces[0].metrics.halstead.N1
old: 1.0
new: 51.0
path: .spaces[0].metrics.halstead.N2
old: 1.0
new: 33.0
path: .spaces[0].metrics.halstead.effort
old: 1.0
new: 2963.329735924478
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 5.0
path: .spaces[0].metrics.loc.sloc
old: 2.0
new: 26.0
path: .spaces[0].metrics.loc.ploc
old: 2.0
new: 21.0
Code
class nsAppShellService final : public nsIAppShellService, public nsIObserver {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIAPPSHELLSERVICE
NS_DECL_NSIOBSERVER
nsAppShellService();
protected:
~nsAppShellService();
void EnsureHiddenWindow();
nsresult JustCreateTopWindow(nsIAppWindow* aParent, nsIURI* aUrl,
uint32_t aChromeMask, int32_t aInitialWidth,
int32_t aInitialHeight, bool aIsHiddenWindow,
mozilla::AppWindow** aResult);
uint32_t CalculateWindowZLevel(nsIAppWindow* aParent, uint32_t aChromeMask);
RefPtr mHiddenWindow;
bool mXPCOMWillShutDown;
bool mXPCOMShuttingDown;
uint16_t mModalWindowCount;
bool mApplicationProvidedHiddenWindow;
uint32_t mScreenId;
};