mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
kernel-explorer: Add basic process info
This commit is contained in:
parent
516da4ecdd
commit
5265eb81e0
2 changed files with 7 additions and 6 deletions
|
@ -196,6 +196,8 @@ void kernel_explorer::Update()
|
||||||
|
|
||||||
const std::unordered_map<u32, QString> tree_item_names =
|
const std::unordered_map<u32, QString> tree_item_names =
|
||||||
{
|
{
|
||||||
|
{ process_info , tr("Process Info")},
|
||||||
|
|
||||||
{ SYS_MEM_OBJECT , tr("Shared Memory")},
|
{ SYS_MEM_OBJECT , tr("Shared Memory")},
|
||||||
{ virtual_memory , tr("Virtual Memory")},
|
{ virtual_memory , tr("Virtual Memory")},
|
||||||
{ SYS_MUTEX_OBJECT , tr("Mutexes")},
|
{ SYS_MUTEX_OBJECT , tr("Mutexes")},
|
||||||
|
@ -287,7 +289,7 @@ void kernel_explorer::Update()
|
||||||
root->setText(0, qstr(fmt::format("Process 0x%08x: Total Memory Usage: 0x%x/0x%x (%0.2f/%0.2f MB)", process_getpid(), total_memory_usage, dct->size, 1. * total_memory_usage / (1024 * 1024)
|
root->setText(0, qstr(fmt::format("Process 0x%08x: Total Memory Usage: 0x%x/0x%x (%0.2f/%0.2f MB)", process_getpid(), total_memory_usage, dct->size, 1. * total_memory_usage / (1024 * 1024)
|
||||||
, 1. * dct->size / (1024 * 1024))));
|
, 1. * dct->size / (1024 * 1024))));
|
||||||
|
|
||||||
// TODO: FileSystem
|
add_solid_node(m_tree, find_node(m_tree, additional_nodes::process_info), qstr(fmt::format("Process Info, Sdk Version 0x%08x: PPC SEG: %#x, SFO Categeory: %s", g_ps3_process_info.sdk_ver, g_ps3_process_info.ppc_seg, Emu.GetCat())));
|
||||||
|
|
||||||
idm::select<lv2_obj>([&](u32 id, lv2_obj& obj)
|
idm::select<lv2_obj>([&](u32 id, lv2_obj& obj)
|
||||||
{
|
{
|
||||||
|
@ -418,12 +420,12 @@ void kernel_explorer::Update()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
add_leaf(node, qstr(fmt::format(u8"LWMutex 0x%08x: “%s”, %s, Wq: %zu (Couldn't extract control data)", id, lv2_obj::name64(lwm.name), lwm.protocol, lwm.sq.size())));
|
add_leaf(node, qstr(fmt::format(u8"LWMutex 0x%08x: “%s”, %s, Signal: %#x, Wq: %zu (Couldn't extract control data)", id, lv2_obj::name64(lwm.name), lwm.protocol, +lwm.signaled, lwm.sq.size())));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
add_leaf(node, qstr(fmt::format(u8"LWMutex 0x%08x: “%s”, %s,%s Owner: %s, Locks: %u, Wq: %zu", id, lv2_obj::name64(lwm.name), lwm.protocol,
|
add_leaf(node, qstr(fmt::format(u8"LWMutex 0x%08x: “%s”, %s,%s Owner: %s, Locks: %u, Signal: %#x, Wq: %zu", id, lv2_obj::name64(lwm.name), lwm.protocol,
|
||||||
(lwm_data.attribute & SYS_SYNC_RECURSIVE) ? " Recursive," : "", owner_str, lwm_data.recursive_count, lwm.sq.size())));
|
(lwm_data.attribute & SYS_SYNC_RECURSIVE) ? " Recursive," : "", owner_str, lwm_data.recursive_count, +lwm.signaled, lwm.sq.size())));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SYS_TIMER_OBJECT:
|
case SYS_TIMER_OBJECT:
|
||||||
|
@ -697,8 +699,6 @@ void kernel_explorer::Update()
|
||||||
add_leaf(find_node(m_tree, additional_nodes::file_descriptors), qstr(fmt::format("FD %u: %s", id, fo.to_string())));
|
add_leaf(find_node(m_tree, additional_nodes::file_descriptors), qstr(fmt::format("FD %u: %s", id, fo.to_string())));
|
||||||
});
|
});
|
||||||
|
|
||||||
// RawSPU Threads (TODO)
|
|
||||||
|
|
||||||
std::function<int(QTreeWidgetItem*)> final_touches;
|
std::function<int(QTreeWidgetItem*)> final_touches;
|
||||||
final_touches = [&final_touches](QTreeWidgetItem* item) -> int
|
final_touches = [&final_touches](QTreeWidgetItem* item) -> int
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,6 +21,7 @@ class kernel_explorer : public QDialog
|
||||||
spu_thread_groups,
|
spu_thread_groups,
|
||||||
rsx_contexts,
|
rsx_contexts,
|
||||||
file_descriptors,
|
file_descriptors,
|
||||||
|
process_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue