pub struct ProfileReq {
pub rid: Option<StrOrList>,
pub http_worker_ipc: Option<String>,
pub kind: i64,
pub output_dir: Option<String>,
pub start_step: Option<i64>,
pub num_steps: Option<i64>,
pub activities: Option<Vec<String>>,
pub profile_by_stage: bool,
pub with_stack: Option<bool>,
pub record_shapes: Option<bool>,
pub profile_id: Option<String>,
}Expand description
Start (kind 1) or stop (kind 2) the profiler.
Fields§
§rid: Option<StrOrList>Request id; control operations rarely set it.
http_worker_ipc: Option<String>In-process HTTP worker address; unused across processes.
kind: i64ProfileReqType: 1 starts, 2 stops.
output_dir: Option<String>Where traces go.
start_step: Option<i64>The forward step to start at.
num_steps: Option<i64>Steps to profile before stopping.
activities: Option<Vec<String>>What to record (CPU, GPU, MEM, …).
profile_by_stage: boolOne trace per stage (prefill, decode).
with_stack: Option<bool>Record Python stacks.
record_shapes: Option<bool>Record tensor shapes.
profile_id: Option<String>Names the trace files.
Trait Implementations§
Source§impl Clone for ProfileReq
impl Clone for ProfileReq
Source§impl Debug for ProfileReq
impl Debug for ProfileReq
Source§impl PartialEq for ProfileReq
impl PartialEq for ProfileReq
impl StructuralPartialEq for ProfileReq
Auto Trait Implementations§
impl Freeze for ProfileReq
impl RefUnwindSafe for ProfileReq
impl Send for ProfileReq
impl Sync for ProfileReq
impl Unpin for ProfileReq
impl UnsafeUnpin for ProfileReq
impl UnwindSafe for ProfileReq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more