mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWebView: Display each tab's title in the Task Manager
This allows us to more easily differentiate between WebContent processes in the Task Manager at a glance.
This commit is contained in:
parent
2fc52657b6
commit
2851c05dee
Notes:
sideshowbarker
2024-07-17 01:12:07 +09:00
Author: https://github.com/trflynn89
Commit: 2851c05dee
Pull-request: https://github.com/SerenityOS/serenity/pull/24074
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 15 additions and 1 deletions
|
@ -197,7 +197,7 @@ String ProcessManager::generate_html()
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Name</th>
|
||||
<th>PID</th>
|
||||
<th>Memory Usage</th>
|
||||
<th>CPU %</th>
|
||||
|
@ -210,6 +210,8 @@ String ProcessManager::generate_html()
|
|||
builder.append("<tr>"sv);
|
||||
builder.append("<td>"sv);
|
||||
builder.append(WebView::process_name_from_type(process.type));
|
||||
if (process.title.has_value())
|
||||
builder.appendff(" - {}", *process.title);
|
||||
builder.append("</td>"sv);
|
||||
builder.append("<td>"sv);
|
||||
builder.append(MUST(String::number(process.pid)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue