update content

This commit is contained in:
Qiuxia Fan 2022-05-27 10:40:02 +08:00
parent 27e89cad86
commit 9c09dfd565
2 changed files with 3 additions and 1 deletions

View File

@ -137,6 +137,7 @@ limitations under the License. -->
type="primary"
@click="searchLogs"
>
<Icon size="sm" iconName="retry" class="reload" />
{{ t("search") }}
</el-button>
</div>

View File

@ -88,11 +88,12 @@ function drawGraph() {
.attr("class", "d3-tip")
.direction("w")
.html((d: { data: StackElement }) => {
const name = d.data.name.replace("<", "&lt;").replace(">", "&gt;");
const valStr =
ebpfStore.aggregateType === AggregateTypes[0].value
? `<div class="mb-5">Dump Count: ${d.data.dumpCount}</div>`
: `<div class="mb-5">Duration: ${d.data.dumpCount} ns</div>`;
return `<div class="mb-5 name">Symbol: ${d.data.name}</div>${valStr}`;
return `<div class="mb-5 name">Symbol: ${name}</div>${valStr}`;
})
.style("max-width", "500px");
flameChart.value.tooltip(tip);