summaryrefslogtreecommitdiff
path: root/DevTools/Profiler
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-09-18 09:49:51 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-25 21:18:17 +0200
commit25488ddcad0b5f112eb67530e4f0368f23f694fd (patch)
treefd1b9aab124482ef0d481e3cfe224809a653b6b4 /DevTools/Profiler
parentb3909ac0ddd6a66c304be6910bcd33e490a6a11d (diff)
downloadserenity-25488ddcad0b5f112eb67530e4f0368f23f694fd.zip
Meta+DevTools: Make clang-format-10 clean
Diffstat (limited to 'DevTools/Profiler')
-rw-r--r--DevTools/Profiler/DisassemblyModel.h12
-rw-r--r--DevTools/Profiler/Profile.cpp3
-rw-r--r--DevTools/Profiler/ProfileModel.h1
3 files changed, 7 insertions, 9 deletions
diff --git a/DevTools/Profiler/DisassemblyModel.h b/DevTools/Profiler/DisassemblyModel.h
index e4c1b6fe9d..52465d0818 100644
--- a/DevTools/Profiler/DisassemblyModel.h
+++ b/DevTools/Profiler/DisassemblyModel.h
@@ -33,12 +33,12 @@ class Profile;
class ProfileNode;
struct InstructionData {
- X86::Instruction insn;
- String disassembly;
- StringView bytes;
- FlatPtr address { 0 };
- u32 event_count { 0 };
- float percent { 0 };
+ X86::Instruction insn;
+ String disassembly;
+ StringView bytes;
+ FlatPtr address { 0 };
+ u32 event_count { 0 };
+ float percent { 0 };
};
class DisassemblyModel final : public GUI::Model {
diff --git a/DevTools/Profiler/Profile.cpp b/DevTools/Profiler/Profile.cpp
index 32c966bbb5..cb7208de07 100644
--- a/DevTools/Profiler/Profile.cpp
+++ b/DevTools/Profiler/Profile.cpp
@@ -117,8 +117,7 @@ void Profile::rebuild_tree()
ProfileNode* node = nullptr;
- auto for_each_frame = [&]<typename Callback>(Callback callback)
- {
+ auto for_each_frame = [&]<typename Callback>(Callback callback) {
if (!m_inverted) {
for (size_t i = 0; i < event.frames.size(); ++i) {
if (callback(event.frames.at(i), i == event.frames.size() - 1) == IterationDecision::Break)
diff --git a/DevTools/Profiler/ProfileModel.h b/DevTools/Profiler/ProfileModel.h
index 580d972997..9b61dd5137 100644
--- a/DevTools/Profiler/ProfileModel.h
+++ b/DevTools/Profiler/ProfileModel.h
@@ -28,7 +28,6 @@
#include <LibGUI/Model.h>
-
class Profile;
class ProfileModel final : public GUI::Model {