summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-02 16:53:03 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-02 16:53:03 +0200
commitbb6634b0247bf6d8b70f6baeadde4cc11d4ee1ee (patch)
tree94f3b2e50ca28aede2a08526746dec2ca457589e /Userland
parent6a1b82df2b9c176c46be3fd89ad78184a5a4f55c (diff)
downloadserenity-bb6634b0247bf6d8b70f6baeadde4cc11d4ee1ee.zip
LibRegex: Don't emit signpost events for every regular expression
The time we were spending on these signposts was adding up to way too much, so let's not do it automatically.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibRegex/RegexMatcher.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Libraries/LibRegex/RegexMatcher.cpp b/Userland/Libraries/LibRegex/RegexMatcher.cpp
index c09419fdf6..b0c8708bad 100644
--- a/Userland/Libraries/LibRegex/RegexMatcher.cpp
+++ b/Userland/Libraries/LibRegex/RegexMatcher.cpp
@@ -11,10 +11,6 @@
#include <LibRegex/RegexMatcher.h>
#include <LibRegex/RegexParser.h>
-#ifdef __serenity__
-# include <serenity.h>
-#endif
-
#if REGEX_DEBUG
# include <LibRegex/RegexDebug.h>
#endif
@@ -119,11 +115,6 @@ RegexResult Matcher<Parser>::match(RegexStringView const& view, Optional<typenam
template<typename Parser>
RegexResult Matcher<Parser>::match(Vector<RegexStringView> const& views, Optional<typename ParserTraits<Parser>::OptionsType> regex_options) const
{
-#ifdef __serenity__
- auto perf_string_id = perf_register_string(m_pattern->pattern_value.characters(), m_pattern->pattern_value.length());
- perf_event(PERF_EVENT_SIGNPOST, perf_string_id, 0);
-#endif
-
// If the pattern *itself* isn't stateful, reset any changes to start_offset.
if (!((AllFlags)m_regex_options.value() & AllFlags::Internal_Stateful))
m_pattern->start_offset = 0;