Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a0311ee

Browse files
committedOct 25, 2024
🐛 process output logs
1 parent f278ee1 commit a0311ee

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎process.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const path = require('path');
55
const ROMPTH = /^OMP_NUM_THREADS=(\d+)/;
66
const RGRAPH = /^Loading graph .*\/(.*?)\.mtx \.\.\./m;
77
const RORDER = /^order: (\d+) size: (\d+) (?:\[\w+\] )?\{\}/m;
8-
const RRESLT = /^\{(.+?)ms, (.+?)ms mark, (.+?)ms init, (.+?)ms firstpass, (.+?)ms locmove, (.+?)ms refine, (.+?)ms aggr, (.+?) aff, (.+?) iters, (.+?) passes, (.+?) modularity, (.+?)\/(.+?) disconnected\} (.+)/m;
9-
8+
const RRESLT = /^\{(.+?)ms, (.+?)ms mark, (.+?)ms init, (.+?)ms firstpass, (.+?)ms locmove, (.+?)ms refine, (.+?)ms aggr, (.+?) slots, (.+?) iters, (.+?) passes, (.+?) modularity\} (.+)/m;
109

1110

1211

@@ -60,7 +59,7 @@ function readLogLine(ln, data, state) {
6059
state.size = parseFloat(size);
6160
}
6261
else if (RRESLT.test(ln)) {
63-
var [, time, marking_time, initialization_time, first_pass_time, local_moving_phase_time, refinement_phase_time, aggregation_phase_time, affected_vertices, iterations, passes, modularity, disconnected_communities, total_communities, technique] = RRESLT.exec(ln);
62+
var [, time, marking_time, initialization_time, first_pass_time, local_moving_phase_time, refinement_phase_time, aggregation_phase_time, number_of_slots, iterations, passes, modularity, technique] = RRESLT.exec(ln);
6463
data.get(state.graph).push(Object.assign({}, state, {
6564
time: parseFloat(time),
6665
marking_time: parseFloat(marking_time),
@@ -69,12 +68,10 @@ function readLogLine(ln, data, state) {
6968
local_moving_phase_time: parseFloat(local_moving_phase_time),
7069
refinement_phase_time: parseFloat(refinement_phase_time),
7170
aggregation_phase_time: parseFloat(aggregation_phase_time),
72-
affected_vertices: parseFloat(affected_vertices),
71+
number_of_slots: parseFloat(number_of_slots),
7372
iterations: parseFloat(iterations),
7473
passes: parseFloat(passes),
7574
modularity: parseFloat(modularity),
76-
disconnected_communities: parseFloat(disconnected_communities),
77-
total_communities: parseFloat(total_communities),
7875
technique,
7976
}));
8077
}

0 commit comments

Comments
 (0)
Please sign in to comment.