From 6533456472b0d3bbe96d92dc83a42c4c73188ec1 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Tue, 22 Jul 2025 08:05:52 +0800 Subject: [PATCH] Add placeholder performance getEntriesByName and Type --- src/browser/dom/performance.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/browser/dom/performance.zig b/src/browser/dom/performance.zig index 67e1a6cc..7a068845 100644 --- a/src/browser/dom/performance.zig +++ b/src/browser/dom/performance.zig @@ -76,6 +76,19 @@ pub const Performance = struct { pub fn _clearMeasures(_: *Performance, name: ?[]const u8) void { _ = name; } + + // TODO: fn _measures should record the marks in a lookup + pub fn _getEntriesByName(_: *Performance, name: []const u8, typ: ?[]const u8) []PerformanceEntry { + _ = name; + _ = typ; + return &.{}; + } + + // TODO: fn _measures should record the marks in a lookup + pub fn _getEntriesByType(_: *Performance, typ: []const u8) []PerformanceEntry { + _ = typ; + return &.{}; + } }; // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry