pub struct TraceEntry {
pub path: String,
pub nonloopable: bool,
pub replay_args: Vec<String>,
pub vram: usize,
pub sysmem: usize,
pub devices: HashMap<String, TraceDeviceEntry>,
}Fields§
§path: String§nonloopable: boolWhen true, we shouldn’t use apitrace’s internal frame looping support due to instability (not all sequences of API calls can just be replayed). Instead, do the replay as many times as we are capturing frames.
replay_args: Vec<String>Extra arguments appended to the replay command for this trace, regardless of device. Concatenated with any per-device replay_args.
vram: usizeVRAM the trace requires while replaying, in MB. Validated against the target device’s declared capacity at config load.
sysmem: usizeSystem memory the trace requires while replaying, in MB. Validated against the target device’s declared capacity at config load.
devices: HashMap<String, TraceDeviceEntry>Implementations§
Source§impl TraceEntry
impl TraceEntry
pub fn device(&self, name: &str) -> Option<&TraceDeviceEntry>
Sourcepub fn combined_replay_args(&self, device: &TraceDeviceEntry) -> Vec<String>
pub fn combined_replay_args(&self, device: &TraceDeviceEntry) -> Vec<String>
Returns the effective replay args for this trace on device: trace-level
args followed by device-level args.
Trait Implementations§
Source§impl Debug for TraceEntry
impl Debug for TraceEntry
Source§impl<'de> Deserialize<'de> for TraceEntry
impl<'de> Deserialize<'de> for TraceEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TraceEntry
impl RefUnwindSafe for TraceEntry
impl Send for TraceEntry
impl Sync for TraceEntry
impl Unpin for TraceEntry
impl UnsafeUnpin for TraceEntry
impl UnwindSafe for TraceEntry
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