Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
ghx-label-2
Description
Impalad returns the JSON results of thread statistics for URL "/thread-group?all&json", e.g. for a thread:
{
name: "StatestoreSubscriber-0",
id: 43136,
user_ns: 26.94,
kernel_ns: 10.18,
iowait_ns: 0.01
},
However, the unit is not ns. Instead, it's seconds. The html page shows the correct unit.
Looking into the code, we actually divided the duration by 1e9 so the unit should be second.
val.AddMember("user_ns", static_cast<double>(stats.user_ns) / 1e9, document->GetAllocator()); val.AddMember("kernel_ns", static_cast<double>(stats.kernel_ns) / 1e9, document->GetAllocator()); val.AddMember("iowait_ns", static_cast<double>(stats.iowait_ns) / 1e9, document->GetAllocator());