修复火焰图脚本问题

Signed-off-by:wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
wenlong12 2024-06-04 19:50:54 +08:00
parent 1b4d0e4256
commit 57a2788a3b

View File

@ -4782,7 +4782,7 @@ input{
this.panel.innerHTML = '';
let processes = json.recordSampleInfo[window.eventIndex].processes;
processes.slice(0).forEach(it => {
it.threads.sort((a, b) => { return b.sampleCount - a.sampleCount });
it.threads.sort((a, b) => { return b.eventCount - a.eventCount });
it.threads.slice(0).forEach(th => {
let pid = it.pid;
let processName = json.processNameMap[it.pid];