mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Kernel: Move perf event backtrace capture out of Thread class
There's no need for this to be generic and support running from an arbitrary thread context. Perf events are always generated from within the thread being profiled, so take advantage of that to simplify the code. Also use Vector capacity to avoid heap allocations.
This commit is contained in:
parent
9c77980965
commit
c10e0adaca
3 changed files with 24 additions and 31 deletions
|
@ -127,7 +127,6 @@ public:
|
|||
const Process& process() const { return m_process; }
|
||||
|
||||
String backtrace();
|
||||
Vector<FlatPtr> raw_backtrace(FlatPtr ebp, FlatPtr eip) const;
|
||||
|
||||
String name() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue