usestd::collections::HashMap;/// A snapshot of GPU energy consumption.
////// This struct holds the total energy consumption (in millijoules) for each GPU device
/// at the time the snapshot was taken.
#[derive(Debug, Default, Clone)]pubstructNvmlSnapshot{/// A map from GPU device index to total energy consumption in millijoules.
pubgpus_energy:HashMap<u32, u64>,
}#[derive(Debug, Clone, Default)]pubstructPhase{/// The snapshot made at the start of a phase.
pubbegin: NvmlSnapshot,
/// The snapshot made at the end of a phase.
pubend: NvmlSnapshot,
}