mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
Kernel+LibC: Add support for filtering profiling events
This adds the -t command-line argument for the profile tool. Using this argument you can filter which event types you want in your profile.
This commit is contained in:
parent
8b2ace0326
commit
572bbf28cc
10 changed files with 72 additions and 33 deletions
|
@ -53,7 +53,7 @@ struct [[gnu::packed]] ContextSwitchPerformanceEvent {
|
|||
};
|
||||
|
||||
struct [[gnu::packed]] PerformanceEvent {
|
||||
u8 type { 0 };
|
||||
u16 type { 0 };
|
||||
u8 stack_size { 0 };
|
||||
u32 pid { 0 };
|
||||
u32 tid { 0 };
|
||||
|
@ -116,5 +116,6 @@ private:
|
|||
|
||||
extern bool g_profiling_all_threads;
|
||||
extern PerformanceEventBuffer* g_global_perf_events;
|
||||
extern u64 g_profiling_event_mask;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue