This commit is contained in:
2022-07-20 11:14:30 +03:00
parent 883612e835
commit b525077156
2 changed files with 14 additions and 12 deletions

View File

@@ -107,16 +107,16 @@ void QPIIntrospector::buildDumpSection(QTreeWidgetItem * pi, PIString & str) {
void QPIIntrospector::showInfo() {
PIString s;
s << info.execCommand << "\n";
s << info.execDateTime.toString() << "\n";
s << info.OS_name << "(" << info.OS_version << ", " << info.architecture << ")\n";
s << info.user << "\n";
s << info.build_options.join(", ") << "\n";
s << "\n";
s << "load k: " << PIString::fromNumber(stat.proc.cpu_load_system, 'f', 2) << " %\n";
s << "load u: " << PIString::fromNumber(stat.proc.cpu_load_user, 'f', 2) << " %\n";
s << "threads: " << stat.proc.threads << "\n";
s << "memory usage: " << stat.proc.physical_memsize_readable;
s += info.execCommand + "\n";
s += info.execDateTime.toString() + "\n";
s += info.OS_name + "(" + info.OS_version + ", " + info.architecture + ")\n";
s += info.user + "\n";
s += info.build_options.join(", ") + "\n";
s += "\n";
s += "load k: " + PIString::fromNumber(stat.proc.cpu_load_system, 'f', 2) + " %\n";
s += "load u: " + PIString::fromNumber(stat.proc.cpu_load_user, 'f', 2) + " %\n";
s += "threads: " + PIString::fromNumber(stat.proc.threads) + "\n";
s += "memory usage: " + stat.proc.physical_memsize_readable;
labelInfo->setText(PI2QString(s));
int tlic = treeStat->topLevelItemCount();
for (int i = tlic; i < stat.threads.size_s(); ++i)