Add perf matrix, esp for hybrid
This commit is contained in:
@@ -200,7 +200,11 @@ function ticked() {
|
||||
.attr("cy", function (d) {
|
||||
return d.y*MULTIPLIER;
|
||||
});
|
||||
}
|
||||
}/*
|
||||
if(alreadyRanIterations%10 != 1) stresses.push("");
|
||||
else stresses.push(d3.calculateStress(nodes, function (n, m) {
|
||||
return distanceFunction(n, m, props, norm);
|
||||
}));*/
|
||||
// Emit the distribution data to allow the drawing of the bar graph
|
||||
if (springForce) {
|
||||
intercom.emit("passedData", simulation.force(forceName).distributionData());
|
||||
@@ -214,7 +218,7 @@ function ended() {
|
||||
simulation.stop();
|
||||
simulation.force(forceName, null);
|
||||
console.log("ended");
|
||||
if (rendering !== true) { // Never drawn anything before? Now it's time.
|
||||
//if (rendering !== true) { // Never drawn anything before? Now it's time.
|
||||
node
|
||||
.attr("cx", function (d) {
|
||||
return d.x*MULTIPLIER;
|
||||
@@ -222,7 +226,10 @@ function ended() {
|
||||
.attr("cy", function (d) {
|
||||
return d.y*MULTIPLIER;
|
||||
});
|
||||
}
|
||||
//}
|
||||
console.log("Post stress", d3.calculateStress(nodes, function (n, m) {
|
||||
return distanceFunction(n, m, props, norm);
|
||||
}));
|
||||
|
||||
if (p1 !== 0) {
|
||||
// Performance time measurement
|
||||
|
||||
Reference in New Issue
Block a user