mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix stacks
This commit is contained in:
parent
5a4015dbba
commit
8c92c628a4
@ -66,6 +66,10 @@ limitations under the License. -->
|
|||||||
rateOfParent: "",
|
rateOfParent: "",
|
||||||
};
|
};
|
||||||
countRange();
|
countRange();
|
||||||
|
if (props.type === ComponentType) {
|
||||||
|
const root = processTree(ebpfStore.analyzeTrees[0].elements);
|
||||||
|
stackTree.value = root;
|
||||||
|
} else {
|
||||||
for (const tree of ebpfStore.analyzeTrees) {
|
for (const tree of ebpfStore.analyzeTrees) {
|
||||||
const ele = processTree(tree.elements);
|
const ele = processTree(tree.elements);
|
||||||
root.children && root.children.push(ele);
|
root.children && root.children.push(ele);
|
||||||
@ -81,6 +85,8 @@ limitations under the License. -->
|
|||||||
root.value = param[0];
|
root.value = param[0];
|
||||||
root.dumpCount = param[1];
|
root.dumpCount = param[1];
|
||||||
stackTree.value = root;
|
stackTree.value = root;
|
||||||
|
}
|
||||||
|
|
||||||
const width = (graph.value && graph.value.getBoundingClientRect().width) || 0;
|
const width = (graph.value && graph.value.getBoundingClientRect().width) || 0;
|
||||||
const w = width < 800 ? 802 : width;
|
const w = width < 800 ? 802 : width;
|
||||||
flameChart.value = flamegraph()
|
flameChart.value = flamegraph()
|
||||||
@ -165,9 +171,9 @@ limitations under the License. -->
|
|||||||
obj[item.originId] = item;
|
obj[item.originId] = item;
|
||||||
}
|
}
|
||||||
const scale = d3.scaleLinear().domain([min.value, max.value]).range([1, 200]);
|
const scale = d3.scaleLinear().domain([min.value, max.value]).range([1, 200]);
|
||||||
|
const condition = props.type === ComponentType ? "0" : "1";
|
||||||
for (const item of copyArr) {
|
for (const item of copyArr) {
|
||||||
if (item.parentId === "1") {
|
if (item.parentId === condition) {
|
||||||
const val = Number(scale(item.dumpCount).toFixed(4));
|
const val = Number(scale(item.dumpCount).toFixed(4));
|
||||||
res = item;
|
res = item;
|
||||||
res.value = val;
|
res.value = val;
|
||||||
|
Loading…
Reference in New Issue
Block a user