mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +00:00
Profiler: Add ability to process read syscalls
Profiler can now process and display read events.
This commit is contained in:
parent
fae991f599
commit
cdfb388154
4 changed files with 28 additions and 1 deletions
|
@ -221,7 +221,15 @@ public:
|
|||
pid_t parent_tid {};
|
||||
};
|
||||
|
||||
Variant<std::nullptr_t, SampleData, MallocData, FreeData, SignpostData, MmapData, MunmapData, ProcessCreateData, ProcessExecData, ThreadCreateData> data { nullptr };
|
||||
struct ReadData {
|
||||
int fd;
|
||||
size_t size;
|
||||
String path;
|
||||
size_t start_timestamp;
|
||||
bool success;
|
||||
};
|
||||
|
||||
Variant<std::nullptr_t, SampleData, MallocData, FreeData, SignpostData, MmapData, MunmapData, ProcessCreateData, ProcessExecData, ThreadCreateData, ReadData> data { nullptr };
|
||||
};
|
||||
|
||||
Vector<Event> const& events() const { return m_events; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue