mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
Profiler: Use sequential serial numbers for profiling events
Previously Profiler was using timestamps to distinguish processes. However it is possible that separate processes with the same PID exist at the exact same timestamp (e.g. for execve). This changes Profiler to use unique serial numbers for each event instead.
This commit is contained in:
committed by
Linus Groh
parent
af72b5ec82
commit
a607f13fc7
@@ -74,7 +74,7 @@ GUI::Variant SamplesModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
|
||||
return event.tid;
|
||||
|
||||
if (index.column() == Column::ExecutableName) {
|
||||
if (auto* process = m_profile.find_process(event.pid, event.timestamp))
|
||||
if (auto* process = m_profile.find_process(event.pid, event.serial))
|
||||
return process->executable;
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user