trace: add enterTask and leaveTask
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
const Node = @import("node.zig");
|
||||||
|
const TaskID = @import("scheduler.zig").TaskID;
|
||||||
|
|
||||||
const PendingTrace = struct {};
|
const PendingTrace = struct {};
|
||||||
|
|
||||||
@@ -11,6 +13,16 @@ pub const Trace = struct {
|
|||||||
_ = self;
|
_ = self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn enterTask(self: *Trace, task_id: TaskID, node: *Node) void {
|
||||||
|
_ = self;
|
||||||
|
_ = task_id;
|
||||||
|
_ = node;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn leaveTask(self: *Trace) void {
|
||||||
|
_ = self;
|
||||||
|
}
|
||||||
|
|
||||||
pub fn beginIO(self: *Trace, disk: bool, source: std.builtin.SourceLocation) PendingTrace {
|
pub fn beginIO(self: *Trace, disk: bool, source: std.builtin.SourceLocation) PendingTrace {
|
||||||
_ = self;
|
_ = self;
|
||||||
_ = disk;
|
_ = disk;
|
||||||
|
|||||||
Reference in New Issue
Block a user