mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
UserspaceEmulator: Optionally generate a Profiler-compatible profile
`ue --profile --profile-file ~/some-file.profile id` can now generate a full profile (instruction-by-instruction, if needed), at the cost of not being able to see past the syscall boundary (a.la. callgrind). This makes it significantly easier to profile seemingly fast userspace things, like Loader.so :^)
This commit is contained in:
parent
3829bf115c
commit
521217735b
Notes:
sideshowbarker
2024-07-18 07:25:17 +09:00
Author: https://github.com/alimpfard
Commit: 521217735b
Pull-request: https://github.com/SerenityOS/serenity/pull/9227
4 changed files with 91 additions and 1 deletions
|
@ -96,6 +96,9 @@ private:
|
|||
void register_signal_handlers();
|
||||
void setup_signal_trampoline();
|
||||
|
||||
void emit_profile_sample(AK::OutputStream&);
|
||||
void emit_profile_event(AK::OutputStream&, StringView event_name, String contents);
|
||||
|
||||
int virt$emuctl(FlatPtr, FlatPtr, FlatPtr);
|
||||
int virt$fork();
|
||||
int virt$execve(FlatPtr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue