mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Merge pull request #910 from lightpanda-io/performance_getEntriesByX
Add placeholder performance getEntriesByName and Type
This commit is contained in:
@@ -76,6 +76,19 @@ pub const Performance = struct {
|
|||||||
pub fn _clearMeasures(_: *Performance, name: ?[]const u8) void {
|
pub fn _clearMeasures(_: *Performance, name: ?[]const u8) void {
|
||||||
_ = name;
|
_ = 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
|
// https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry
|
||||||
|
|||||||
Reference in New Issue
Block a user