Skip to content

Commit 23f3bf4

Browse files
authored
Merge pull request #910 from lightpanda-io/performance_getEntriesByX
Add placeholder performance getEntriesByName and Type
2 parents 7969e04 + 6533456 commit 23f3bf4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/browser/dom/performance.zig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,19 @@ pub const Performance = struct {
7676
pub fn _clearMeasures(_: *Performance, name: ?[]const u8) void {
7777
_ = name;
7878
}
79+
80+
// TODO: fn _measures should record the marks in a lookup
81+
pub fn _getEntriesByName(_: *Performance, name: []const u8, typ: ?[]const u8) []PerformanceEntry {
82+
_ = name;
83+
_ = typ;
84+
return &.{};
85+
}
86+
87+
// TODO: fn _measures should record the marks in a lookup
88+
pub fn _getEntriesByType(_: *Performance, typ: []const u8) []PerformanceEntry {
89+
_ = typ;
90+
return &.{};
91+
}
7992
};
8093

8194
// https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry

0 commit comments

Comments
 (0)