Global Metrics
path: .metrics.nom.closures
old: 1.0
new: 0.0
path: .metrics.nom.functions
old: 5.0
new: 10.0
path: .metrics.nom.total
old: 6.0
new: 10.0
path: .metrics.nargs.average
old: 1.1666666666666667
new: 1.3
path: .metrics.nargs.sum
old: 7.0
new: 13.0
path: .metrics.nexits.average
old: 3.3333333333333335
new: 0.6
path: .metrics.nexits.sum
old: 20.0
new: 6.0
path: .metrics.mi.mi_original
old: 20.739085527208147
new: 26.007288112988547
path: .metrics.mi.mi_sei
old: -12.707608089790243
new: -9.869443560938048
path: .metrics.mi.mi_visual_studio
old: 12.128120191349792
new: 15.208940416952368
path: .metrics.cognitive.average
old: 5.166666666666667
new: 3.7
path: .metrics.cognitive.sum
old: 31.0
new: 37.0
path: .metrics.loc.ploc
old: 230.0
new: 192.0
path: .metrics.loc.blank
old: 64.0
new: 34.0
path: .metrics.loc.lloc
old: 99.0
new: 91.0
path: .metrics.loc.sloc
old: 356.0
new: 253.0
path: .metrics.loc.cloc
old: 62.0
new: 27.0
path: .metrics.halstead.n2
old: 187.0
new: 196.0
path: .metrics.halstead.purity_ratio
old: 1.0673414875914438
new: 1.767573709929111
path: .metrics.halstead.volume
old: 11058.654170479938
new: 7153.4252082269195
path: .metrics.halstead.length
old: 1431.0
new: 917.0
path: .metrics.halstead.effort
old: 468662.2155136552
new: 199547.71594888103
path: .metrics.halstead.level
old: 0.02359621451104101
new: 0.03584819387288523
path: .metrics.halstead.vocabulary
old: 212.0
new: 223.0
path: .metrics.halstead.estimated_program_length
old: 1527.365668743356
new: 1620.8650920049945
path: .metrics.halstead.time
old: 26036.78975075862
new: 11085.98421938228
path: .metrics.halstead.difficulty
old: 42.37967914438503
new: 27.895408163265305
path: .metrics.halstead.N1
old: 797.0
new: 512.0
path: .metrics.halstead.N2
old: 634.0
new: 405.0
path: .metrics.halstead.bugs
old: 2.01118508419413
new: 1.1382646608134197
path: .metrics.halstead.n1
old: 25.0
new: 27.0
path: .metrics.cyclomatic.average
old: 4.142857142857143
new: 3.636363636363636
path: .metrics.cyclomatic.sum
old: 29.0
new: 40.0
Spaces Data
Minimal test - lines (53, 63)
path: .spaces[0].metrics.loc.lloc
old: 1.0
new: 6.0
path: .spaces[0].metrics.loc.sloc
old: 3.0
new: 11.0
path: .spaces[0].metrics.loc.ploc
old: 3.0
new: 11.0
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].metrics.mi.mi_original
old: 133.8216851151358
new: 103.19654503689485
path: .spaces[0].metrics.mi.mi_sei
old: 117.56666920580702
new: 73.28211162899446
path: .spaces[0].metrics.mi.mi_visual_studio
old: 78.2582953889683
new: 60.34885674672213
path: .spaces[0].metrics.halstead.bugs
old: 0.008058711007931684
new: 0.04734378131631193
path: .spaces[0].metrics.halstead.volume
old: 38.039100017307746
new: 250.76823424783512
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.6341367062030674
new: 1.7135060187589035
path: .spaces[0].metrics.halstead.N2
old: 5.0
new: 24.0
path: .spaces[0].metrics.halstead.n2
old: 4.0
new: 16.0
path: .spaces[0].metrics.halstead.N1
old: 7.0
new: 30.0
path: .spaces[0].metrics.halstead.effort
old: 118.87218755408672
new: 1692.6855811728872
path: .spaces[0].metrics.halstead.level
old: 0.32
new: 0.14814814814814814
path: .spaces[0].metrics.halstead.time
old: 6.604010419671484
new: 94.03808784293818
path: .spaces[0].metrics.halstead.n1
old: 5.0
new: 9.0
path: .spaces[0].metrics.halstead.difficulty
old: 3.125
new: 6.75
path: .spaces[0].metrics.halstead.estimated_program_length
old: 19.60964047443681
new: 92.5293250129808
path: .spaces[0].metrics.halstead.length
old: 12.0
new: 54.0
path: .spaces[0].metrics.halstead.vocabulary
old: 9.0
new: 25.0
path: .spaces[0].metrics.cyclomatic.sum
old: 2.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: 1.0
new: 3.0
path: .spaces[0].metrics.nargs.sum
old: 1.0
new: 3.0
Code
static gint PollWrapper(GPollFD* ufds, guint nfsd, gint timeout_) {
mozilla::BackgroundHangMonitor().NotifyWait();
gint result;
{
AUTO_PROFILER_LABEL("PollWrapper", IDLE);
AUTO_PROFILER_THREAD_SLEEP;
result = (*sPollFunc)(ufds, nfsd, timeout_);
}
mozilla::BackgroundHangMonitor().NotifyActivity();
return result;
}
Minimal test - lines (80, 86)
path: .spaces[3].metrics.loc.sloc
old: 59.0
new: 7.0
path: .spaces[3].metrics.loc.blank
old: 10.0
new: 1.0
path: .spaces[3].metrics.loc.cloc
old: 11.0
new: 0.0
path: .spaces[3].metrics.loc.ploc
old: 38.0
new: 6.0
path: .spaces[3].metrics.loc.lloc
old: 16.0
new: 3.0
path: .spaces[3].metrics.mi.mi_original
old: 65.4314693972168
new: 113.43723854970548
path: .spaces[3].metrics.mi.mi_sei
old: 50.41660565295064
new: 88.05630937519015
path: .spaces[3].metrics.mi.mi_visual_studio
old: 38.26401719135486
new: 66.33756640333654
path: .spaces[3].metrics.cyclomatic.sum
old: 7.0
new: 1.0
path: .spaces[3].metrics.cyclomatic.average
old: 7.0
new: 1.0
path: .spaces[3].metrics.halstead.n2
old: 48.0
new: 11.0
path: .spaces[3].metrics.halstead.volume
old: 1464.0
new: 143.06119944376186
path: .spaces[3].metrics.halstead.level
old: 0.05555555555555555
new: 0.2156862745098039
path: .spaces[3].metrics.halstead.purity_ratio
old: 1.3609762296500636
new: 1.5303863659810628
path: .spaces[3].metrics.halstead.N2
old: 108.0
new: 17.0
path: .spaces[3].metrics.halstead.bugs
old: 0.2951805922861147
new: 0.025351966200511673
path: .spaces[3].metrics.halstead.vocabulary
old: 64.0
new: 17.0
path: .spaces[3].metrics.halstead.length
old: 244.0
new: 35.0
path: .spaces[3].metrics.halstead.n1
old: 16.0
new: 6.0
path: .spaces[3].metrics.halstead.time
old: 1464.0
new: 36.84909682642351
path: .spaces[3].metrics.halstead.N1
old: 136.0
new: 18.0
path: .spaces[3].metrics.halstead.effort
old: 26352.0
new: 663.2837428756233
path: .spaces[3].metrics.halstead.difficulty
old: 18.0
new: 4.636363636363637
path: .spaces[3].metrics.halstead.estimated_program_length
old: 332.0782000346155
new: 53.5635228093372
path: .spaces[3].metrics.cognitive.sum
old: 6.0
new: 0.0
path: .spaces[3].metrics.cognitive.average
old: 6.0
new: 0.0
path: .spaces[3].metrics.nexits.average
old: 7.0
new: 0.0
path: .spaces[3].metrics.nexits.sum
old: 7.0
new: 0.0
Code
static void WrapGdkFrameClockConstructed(GObject* object) {
sRealGdkFrameClockConstructed(object);
g_signal_connect(object, "flush-events", G_CALLBACK(OnFlushEvents), nullptr);
g_signal_connect(object, "resume-events", G_CALLBACK(OnResumeEvents),
nullptr);
}
Minimal test - lines (72, 74)
path: .spaces[1].metrics.nargs.average
old: 1.0
new: 2.0
path: .spaces[1].metrics.nargs.sum
old: 1.0
new: 2.0
path: .spaces[1].metrics.cognitive.average
old: 2.0
new: 0.0
path: .spaces[1].metrics.cognitive.sum
old: 2.0
new: 0.0
path: .spaces[1].metrics.loc.sloc
old: 24.0
new: 3.0
path: .spaces[1].metrics.loc.ploc
old: 23.0
new: 3.0
path: .spaces[1].metrics.loc.lloc
old: 10.0
new: 1.0
path: .spaces[1].metrics.loc.cloc
old: 1.0
new: 0.0
path: .spaces[1].metrics.halstead.volume
old: 757.8757272934952
new: 72.33974351909448
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.4742073375679368
new: 2.079461842332997
path: .spaces[1].metrics.halstead.N1
old: 88.0
new: 10.0
path: .spaces[1].metrics.halstead.n2
old: 27.0
new: 8.0
path: .spaces[1].metrics.halstead.vocabulary
old: 45.0
new: 14.0
path: .spaces[1].metrics.halstead.length
old: 138.0
new: 19.0
path: .spaces[1].metrics.halstead.difficulty
old: 16.666666666666668
new: 3.375
path: .spaces[1].metrics.halstead.estimated_program_length
old: 203.4406125843753
new: 39.50977500432694
path: .spaces[1].metrics.halstead.level
old: 0.06
new: 0.2962962962962963
path: .spaces[1].metrics.halstead.time
old: 701.7367845310141
new: 13.563701909830217
path: .spaces[1].metrics.halstead.bugs
old: 0.1807909042845263
new: 0.013021046999192576
path: .spaces[1].metrics.halstead.N2
old: 50.0
new: 9.0
path: .spaces[1].metrics.halstead.n1
old: 18.0
new: 6.0
path: .spaces[1].metrics.halstead.effort
old: 12631.262121558251
new: 244.1466343769439
path: .spaces[1].metrics.cyclomatic.average
old: 3.0
new: 1.0
path: .spaces[1].metrics.cyclomatic.sum
old: 3.0
new: 1.0
path: .spaces[1].metrics.nexits.average
old: 3.0
new: 0.0
path: .spaces[1].metrics.nexits.sum
old: 3.0
new: 0.0
path: .spaces[1].metrics.mi.mi_original
old: 84.3468269433564
new: 130.70933778224418
path: .spaces[1].metrics.mi.mi_visual_studio
old: 49.3256297914365
new: 76.43820922938257
path: .spaces[1].metrics.mi.mi_sei
old: 61.84053617745979
new: 112.97468128371582
Code
static void OnFlushEvents(GObject* clock, gpointer) {
g_object_set_qdata(clock, sPendingResumeQuark, GUINT_TO_POINTER(1));
}
Minimal test - lines (88, 94)
path: .spaces[4].metrics.cyclomatic.average
old: 6.0
new: 2.0
path: .spaces[4].metrics.cyclomatic.sum
old: 6.0
new: 2.0
path: .spaces[4].metrics.mi.mi_original
old: 67.39730717423338
new: 115.19184386561736
path: .spaces[4].metrics.mi.mi_visual_studio
old: 39.413629926452266
new: 67.36365138340196
path: .spaces[4].metrics.mi.mi_sei
old: 42.78701880598469
new: 90.68948962257812
path: .spaces[4].metrics.nexits.sum
old: 5.0
new: 0.0
path: .spaces[4].metrics.nexits.average
old: 5.0
new: 0.0
path: .spaces[4].metrics.halstead.volume
old: 1464.4335812574795
new: 97.67226489021296
path: .spaces[4].metrics.halstead.n1
old: 19.0
new: 7.0
path: .spaces[4].metrics.halstead.bugs
old: 0.3486810424775752
new: 0.0201514706332258
path: .spaces[4].metrics.halstead.level
old: 0.04328578455484506
new: 0.2077922077922078
path: .spaces[4].metrics.halstead.N1
old: 138.0
new: 14.0
path: .spaces[4].metrics.halstead.difficulty
old: 23.102272727272727
new: 4.8125
path: .spaces[4].metrics.halstead.vocabulary
old: 63.0
new: 15.0
path: .spaces[4].metrics.halstead.purity_ratio
old: 1.309900465205997
new: 1.746059378176129
path: .spaces[4].metrics.halstead.effort
old: 33831.743985187
new: 470.0477747841499
path: .spaces[4].metrics.halstead.N2
old: 107.0
new: 11.0
path: .spaces[4].metrics.halstead.estimated_program_length
old: 320.9256139754692
new: 43.65148445440323
path: .spaces[4].metrics.halstead.n2
old: 44.0
new: 8.0
path: .spaces[4].metrics.halstead.time
old: 1879.5413325103889
new: 26.113765265786107
path: .spaces[4].metrics.halstead.length
old: 245.0
new: 25.0
path: .spaces[4].metrics.loc.lloc
old: 19.0
new: 3.0
path: .spaces[4].metrics.loc.ploc
old: 40.0
new: 6.0
path: .spaces[4].metrics.loc.cloc
old: 4.0
new: 0.0
path: .spaces[4].metrics.loc.sloc
old: 53.0
new: 7.0
path: .spaces[4].metrics.loc.blank
old: 9.0
new: 1.0
path: .spaces[4].metrics.cognitive.sum
old: 9.0
new: 1.0
path: .spaces[4].metrics.cognitive.average
old: 9.0
new: 1.0
Code
static void WrapGdkFrameClockDispose(GObject* object) {
if (g_object_get_qdata(object, sPendingResumeQuark)) {
g_signal_emit_by_name(object, "resume-events");
}
sRealGdkFrameClockDispose(object);
}
Minimal test - lines (76, 78)
path: .spaces[2].metrics.nexits.average
old: 2.5
new: 0.0
path: .spaces[2].metrics.nexits.sum
old: 5.0
new: 0.0
path: .spaces[2].metrics.cognitive.sum
old: 14.0
new: 0.0
path: .spaces[2].metrics.cognitive.average
old: 7.0
new: 0.0
path: .spaces[2].metrics.mi.mi_visual_studio
old: 23.759213533334705
new: 76.86305434314004
path: .spaces[2].metrics.mi.mi_original
old: 40.628255142002345
new: 131.43582292676948
path: .spaces[2].metrics.mi.mi_sei
old: 16.097886811469657
new: 114.02277779900194
path: .spaces[2].metrics.nom.total
old: 2.0
new: 1.0
path: .spaces[2].metrics.nom.closures
old: 1.0
new: 0.0
path: .spaces[2].metrics.halstead.n1
old: 23.0
new: 6.0
path: .spaces[2].metrics.halstead.effort
old: 162965.09911552636
new: 215.6827721430808
path: .spaces[2].metrics.halstead.length
old: 744.0
new: 17.0
path: .spaces[2].metrics.halstead.volume
old: 5392.458070002027
new: 62.907475208398566
path: .spaces[2].metrics.halstead.n2
old: 129.0
new: 7.0
path: .spaces[2].metrics.halstead.difficulty
old: 30.22093023255814
new: 3.4285714285714284
path: .spaces[2].metrics.halstead.time
old: 9053.616617529242
new: 11.982376230171155
path: .spaces[2].metrics.halstead.estimated_program_length
old: 1008.490240938911
new: 35.161259458730164
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.3554976356705792
new: 2.068309379925304
path: .spaces[2].metrics.halstead.bugs
old: 0.9945084602898882
new: 0.011988247942334716
path: .spaces[2].metrics.halstead.level
old: 0.03308964986533282
new: 0.2916666666666667
path: .spaces[2].metrics.halstead.N1
old: 405.0
new: 9.0
path: .spaces[2].metrics.halstead.vocabulary
old: 152.0
new: 13.0
path: .spaces[2].metrics.halstead.N2
old: 339.0
new: 8.0
path: .spaces[2].metrics.loc.blank
old: 29.0
new: 0.0
path: .spaces[2].metrics.loc.cloc
old: 35.0
new: 0.0
path: .spaces[2].metrics.loc.lloc
old: 53.0
new: 1.0
path: .spaces[2].metrics.loc.ploc
old: 108.0
new: 3.0
path: .spaces[2].metrics.loc.sloc
old: 172.0
new: 3.0
path: .spaces[2].metrics.cyclomatic.average
old: 10.0
new: 1.0
path: .spaces[2].metrics.cyclomatic.sum
old: 10.0
new: 1.0
path: .spaces[2].metrics.nargs.sum
old: 3.0
new: 2.0
path: .spaces[2].metrics.nargs.average
old: 1.5
new: 2.0
Code
static void OnResumeEvents(GObject* clock, gpointer) {
g_object_set_qdata(clock, sPendingResumeQuark, nullptr);
}