mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibWeb: Implement performance.{measure,clearMeasures}
This commit is contained in:
parent
d088619560
commit
036e1e1bcf
10 changed files with 371 additions and 4 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <LibWeb/Infra/Base64.h>
|
||||
#include <LibWeb/PerformanceTimeline/EntryTypes.h>
|
||||
#include <LibWeb/UserTiming/PerformanceMark.h>
|
||||
#include <LibWeb/UserTiming/PerformanceMeasure.h>
|
||||
#include <LibWeb/WebIDL/AbstractOperations.h>
|
||||
#include <LibWeb/WebIDL/DOMException.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
@ -35,8 +36,9 @@ namespace Web::HTML {
|
|||
WindowOrWorkerGlobalScopeMixin::~WindowOrWorkerGlobalScopeMixin() = default;
|
||||
|
||||
// Please keep these in alphabetical order based on the entry type :^)
|
||||
#define ENUMERATE_SUPPORTED_PERFORMANCE_ENTRY_TYPES \
|
||||
__ENUMERATE_SUPPORTED_PERFORMANCE_ENTRY_TYPES(PerformanceTimeline::EntryTypes::mark, UserTiming::PerformanceMark)
|
||||
#define ENUMERATE_SUPPORTED_PERFORMANCE_ENTRY_TYPES \
|
||||
__ENUMERATE_SUPPORTED_PERFORMANCE_ENTRY_TYPES(PerformanceTimeline::EntryTypes::mark, UserTiming::PerformanceMark) \
|
||||
__ENUMERATE_SUPPORTED_PERFORMANCE_ENTRY_TYPES(PerformanceTimeline::EntryTypes::measure, UserTiming::PerformanceMeasure)
|
||||
|
||||
JS::ThrowCompletionOr<void> WindowOrWorkerGlobalScopeMixin::initialize(JS::Realm& realm)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue