mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
Kernel+ProfileViewer: Display additional filesystem events
This commit is contained in:
parent
c184a0786f
commit
54e79aa1d9
16 changed files with 655 additions and 135 deletions
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
* Copyright (c) 2023, Jakub Berkop <jakub.berkop@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -90,9 +91,24 @@ GUI::Variant SamplesModel::data(GUI::ModelIndex const& index, GUI::ModelRole rol
|
|||
}
|
||||
|
||||
if (index.column() == Column::Path) {
|
||||
if (!event.data.has<Profile::Event::ReadData>())
|
||||
return "";
|
||||
return event.data.get<Profile::Event::ReadData>().path;
|
||||
if (event.data.has<Profile::Event::FilesystemEventData>()) {
|
||||
return event.data.get<Profile::Event::FilesystemEventData>().data.visit(
|
||||
[&](Profile::Event::OpenEventData const& data) {
|
||||
return data.path;
|
||||
},
|
||||
[&](Profile::Event::CloseEventData const& data) {
|
||||
return data.path;
|
||||
},
|
||||
[&](Profile::Event::ReadvEventData const& data) {
|
||||
return data.path;
|
||||
},
|
||||
[&](Profile::Event::ReadEventData const& data) {
|
||||
return data.path;
|
||||
},
|
||||
[&](Profile::Event::PreadEventData const& data) {
|
||||
return data.path;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue