修改显示单位纳秒为毫秒

This commit is contained in:
Your Name 2022-10-20 14:39:23 +08:00
parent c679cb81ee
commit 4385166952
4 changed files with 5 additions and 5 deletions

View File

@ -286,12 +286,12 @@ function parse_mutexInfo(mutexObj:MutexInfo[], sinfoList:SourceInfo[], dimension
sinfo['product'] = `线程 ${obj.pid}`;
if(obj.condWaitTime){
miStr += `
<li>线 ${obj.pid} ${obj.totalTime} ${obj.condWaitTime} .
<li>线 ${obj.pid} ${obj.totalTime/1000000} ${obj.condWaitTime/1000000} .
<ul>
`;
}else{
miStr += `
<li>线 ${obj.pid} ${obj.totalTime} .
<li>线 ${obj.pid} ${obj.totalTime/1000000} .
<ul>
`;
}
@ -299,18 +299,18 @@ function parse_mutexInfo(mutexObj:MutexInfo[], sinfoList:SourceInfo[], dimension
let info = obj.details[key1].split('-');
if(info.length >= 3){
let key = '互斥量 0x'+Number(key1).toString(16);
sinfo[key] = Number(info[1]);
sinfo[key] = Number(info[1])/1000000;
mutexSet.add(key);
if(Number(info[2])){
miStr += `
<li>
(${key}) ${info[0]} , ${info[1]} , ${info[2]} .
(${key}) ${info[0]} , ${sinfo[key]} , ${Number(info[2])/1000000} .
</li>
`;
}else{
miStr += `
<li>
(${key}) ${info[0]} , ${info[1]} .
(${key}) ${info[0]} , ${sinfo[key]} .
</li>
`;
}