summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-02 21:19:30 +0200
committerLinus Groh <mail@linusgroh.de>2021-06-03 01:16:32 +0100
commit9444272ba02cc0a1815d79c22ef2fb0cc3c79548 (patch)
tree174e991732160e61b262191bad3284db391c71da /Userland/DevTools
parenta607f13fc7d445ee4a05b7660df72f631f75c9e2 (diff)
downloadserenity-9444272ba02cc0a1815d79c22ef2fb0cc3c79548.zip
Profiler: Remove m_deepest_stack_depth
This isn't used anymore so let's remove it entirely.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/Profiler/Profile.cpp4
-rw-r--r--Userland/DevTools/Profiler/Profile.h2
2 files changed, 0 insertions, 6 deletions
diff --git a/Userland/DevTools/Profiler/Profile.cpp b/Userland/DevTools/Profiler/Profile.cpp
index f169713a0b..587fda1898 100644
--- a/Userland/DevTools/Profiler/Profile.cpp
+++ b/Userland/DevTools/Profiler/Profile.cpp
@@ -40,10 +40,6 @@ Profile::Profile(Vector<Process> processes, Vector<Event> events)
m_model = ProfileModel::create(*this);
m_samples_model = SamplesModel::create(*this);
- for (auto& event : m_events) {
- m_deepest_stack_depth = max((u32)event.frames.size(), m_deepest_stack_depth);
- }
-
rebuild_tree();
}
diff --git a/Userland/DevTools/Profiler/Profile.h b/Userland/DevTools/Profiler/Profile.h
index 7ec6e36455..7dd8e54b47 100644
--- a/Userland/DevTools/Profiler/Profile.h
+++ b/Userland/DevTools/Profiler/Profile.h
@@ -185,7 +185,6 @@ public:
u64 length_in_ms() const { return m_last_timestamp - m_first_timestamp; }
u64 first_timestamp() const { return m_first_timestamp; }
u64 last_timestamp() const { return m_last_timestamp; }
- u32 deepest_stack_depth() const { return m_deepest_stack_depth; }
void set_timestamp_filter_range(u64 start, u64 end);
void clear_timestamp_filter_range();
@@ -245,7 +244,6 @@ private:
Vector<ProcessFilter> m_process_filters;
- u32 m_deepest_stack_depth { 0 };
bool m_inverted { false };
bool m_show_top_functions { false };
bool m_show_percentages { false };