Add performance.enable

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-06-07 16:16:15 +02:00
parent cecc03e1ed
commit 08c11ac41f
2 changed files with 40 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ const runtime = @import("runtime.zig").runtime;
const network = @import("network.zig").network;
const emulation = @import("emulation.zig").emulation;
const fetch = @import("fetch.zig").fetch;
const performance = @import("performance.zig").performance;
pub const Error = error{
UnknonwDomain,
@@ -37,6 +38,7 @@ const Domains = enum {
Network,
Emulation,
Fetch,
Performance,
};
// The caller is responsible for calling `free` on the returned slice.
@@ -87,6 +89,7 @@ pub fn do(
.Network => network(alloc, id, iter.next().?, &scanner, ctx),
.Emulation => emulation(alloc, id, iter.next().?, &scanner, ctx),
.Fetch => fetch(alloc, id, iter.next().?, &scanner, ctx),
.Performance => performance(alloc, id, iter.next().?, &scanner, ctx),
};
}