mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Debuggers/Qt: Show the threads process names and ids in the Wai… (#5201)
This commit is contained in:
		
							parent
							
								
									f75cc8be64
								
							
						
					
					
						commit
						e480a8032b
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -216,6 +216,7 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeThread::GetChildren() const { | |||
|     std::vector<std::unique_ptr<WaitTreeItem>> list(WaitTreeWaitObject::GetChildren()); | ||||
| 
 | ||||
|     const auto& thread = static_cast<const Kernel::Thread&>(object); | ||||
|     const auto* process = thread.owner_process; | ||||
| 
 | ||||
|     QString processor; | ||||
|     switch (thread.processor_id) { | ||||
|  | @ -238,6 +239,10 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeThread::GetChildren() const { | |||
| 
 | ||||
|     list.push_back(std::make_unique<WaitTreeText>(tr("processor = %1").arg(processor))); | ||||
|     list.push_back(std::make_unique<WaitTreeText>(tr("thread id = %1").arg(thread.GetThreadId()))); | ||||
|     list.push_back( | ||||
|         std::make_unique<WaitTreeText>(tr("process = %1 (%2)") | ||||
|                                            .arg(QString::fromStdString(process->GetName())) | ||||
|                                            .arg(process->process_id))); | ||||
|     list.push_back(std::make_unique<WaitTreeText>(tr("priority = %1(current) / %2(normal)") | ||||
|                                                       .arg(thread.current_priority) | ||||
|                                                       .arg(thread.nominal_priority))); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue