X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9bcd318d5fa2a38139c9651d263a06c797529333..ba379fdc102753d6be2c4d937058fe40257329fe:/profiler/ProfileNode.cpp diff --git a/profiler/ProfileNode.cpp b/profiler/ProfileNode.cpp index 3458902..19050aa 100644 --- a/profiler/ProfileNode.cpp +++ b/profiler/ProfileNode.cpp @@ -29,9 +29,9 @@ #include "config.h" #include "ProfileNode.h" -#include "DateMath.h" #include "Profiler.h" #include +#include #if PLATFORM(WIN_OS) #include @@ -49,7 +49,7 @@ static double getCount() QueryPerformanceCounter(&counter); return static_cast(counter.QuadPart) / frequency.QuadPart; #else - return getCurrentUTCTimeWithMicroseconds(); + return WTF::getCurrentUTCTimeWithMicroseconds(); #endif } @@ -204,12 +204,6 @@ ProfileNode* ProfileNode::traverseNextNodePreOrder(bool processChildren) const return next; } -void ProfileNode::sort(bool comparator(const RefPtr& , const RefPtr& )) -{ - std::sort(childrenBegin(), childrenEnd(), comparator); - resetChildrensSiblings(); -} - void ProfileNode::setTreeVisible(ProfileNode* node, bool visible) { ProfileNode* nodeParent = node->parent();