1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:17:44 +00:00

Profiler: Move everything into the "Profiler" namespace

This commit is contained in:
Andreas Kling 2021-05-04 17:45:02 +02:00
parent d29e2dd2d7
commit dbbc6096a9
17 changed files with 66 additions and 0 deletions

View file

@ -18,6 +18,8 @@
#include <LibELF/Image.h>
#include <sys/stat.h>
namespace Profiler {
static void sort_profile_nodes(Vector<NonnullRefPtr<ProfileNode>>& nodes)
{
quick_sort(nodes.begin(), nodes.end(), [](auto& a, auto& b) {
@ -459,3 +461,5 @@ const Process* ProfileNode::process(Profile& profile, u64 timestamp) const
{
return profile.find_process(m_pid, timestamp);
}
}